Interface Connection


  • public interface Connection
    The Connection interface represents a data link connection to a remote entity. Objects implementing Connection and returned by the ConnectionServer.getConnection method are Permanent Entry Point Objects.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isConnected()
      Returns the status of the Connection.
      void updateConnectionParameters​(byte[] connectionParameters, short sOffset, short sLength)
      Update the connection parameters.
      This operation can be performed only on Connection objects not allowing the multiplexing.
    • Method Detail

      • updateConnectionParameters

        void updateConnectionParameters​(byte[] connectionParameters,
                                        short sOffset,
                                        short sLength)
                                 throws java.lang.ArrayIndexOutOfBoundsException,
                                        ConnectionException,
                                        java.lang.NullPointerException
        Update the connection parameters.
        This operation can be performed only on Connection objects not allowing the multiplexing.
        Parameters:
        connectionParameters - parameters to build up an OPEN CHANNEL command according to ETSI TS 102 223
        sOffset - the starting offset of the parameters in the connectionParameters byte array
        sLength - the length of the parameters
        Throws:
        java.lang.ArrayIndexOutOfBoundsException - if sOffset and sLength are causing access outside of connectionParameters array bounds
        ConnectionException - with the following reason code:
        • INVALID_STATE if the connection is already opened.
        • OPERATION_NOT_ALLOWED if the Connection allows multiplexing.
        java.lang.NullPointerException - if connectionParameters is equal to null
      • isConnected

        boolean isConnected()
        Returns the status of the Connection.
        Returns:
        true if the Connection is connected, false otherwise.