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

    Modifier and Type
    Method
    Description
    boolean
    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 Details

    • updateConnectionParameters

      void updateConnectionParameters(byte[] connectionParameters, short sOffset, short sLength) throws ArrayIndexOutOfBoundsException, ConnectionException, 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:
      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.
      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.