|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuicc.connection.ConnectionServer
public class ConnectionServer
This ConnectionServer factory class provides methods to create
objects implementing Connection, BIPLink and UICCTransportLink.
Any object instanciated by the ConnectionServer is a Permanent Entry Point Object.
| Field Summary | |
|---|---|
static byte |
CAT_TP
Indicating the usage of CAT_TP as transport protocol: 0 |
| Method Summary | |
|---|---|
static BIPLink |
createBIPLink(Connection oConnection,
Observer oObserver)
Returns an instance providing a connection service without any additional reliable protocol. |
static UICCTransportLink |
createUICCTransportLink(byte bLinkType,
Connection oConnection,
Observer oObserver)
Returns an instance providing a connection service which implements a reliable transport protocol. |
static Connection |
getConnection()
Returns an instance providing a data link connection. |
static Connection |
getConnection(byte[] baConnectionParameters,
short sOffset,
short sLength,
boolean multiplexingAllowed)
Returns an instance providing a data link connection. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte CAT_TP
| Method Detail |
|---|
public static Connection getConnection()
Connection objects created by this methods implictly does not allow multiplexing.
Connection instance or null if the connection resources are exceeded
public static Connection getConnection(byte[] baConnectionParameters,
short sOffset,
short sLength,
boolean multiplexingAllowed)
throws java.lang.ArrayIndexOutOfBoundsException,
java.lang.NullPointerException
baConnectionParameters - the parameters to build up an OPEN CHANNEL command according to ETSI TS 102 223sOffset - the offset to the parameters in the byte arraysLength - the length of the parametersmultiplexingAllowed - if true, indicates whether an already existing Connection
with the same parameters can be returned, or if the newly created
Connection object can be re-used by another entity.
If false, an new Connection object
is created.
Connection instance or null if the connection resources are exceeded
java.lang.NullPointerException - if baConnectionParameters is equal to null
java.lang.ArrayIndexOutOfBoundsException - if sOffset and sLength are causing access
outside of baConnectionParameters array bounds
public static UICCTransportLink createUICCTransportLink(byte bLinkType,
Connection oConnection,
Observer oObserver)
throws java.lang.ArrayIndexOutOfBoundsException,
ConnectionException,
java.lang.NullPointerException
bLinkType - the kind of reliable mechanism which shall be used for that linkoConnection - the connection to create the reliable link onoObserver - the Observer to be used for notification about state changes
UICCTransportLink instance based on the
delivered connection or null if the connection ressources are exceeded
ConnectionException - with the following reason code:
TRANSPORT_PROTOCOL_NOT_SUPPORTEDif the requested
transport protocol type bLinkType is not supported.INVALID_PARAMETERS if oConnection is already in use
and does not support multiplexing.
RESOURCE_NOT_AVAILABLE if there are not sufficient
resources available (on the UICC or on the terminal).
java.lang.NullPointerException - if oConnection or oObserver is equal to null
java.lang.ArrayIndexOutOfBoundsException
public static BIPLink createBIPLink(Connection oConnection,
Observer oObserver)
throws ConnectionException,
java.lang.NullPointerException
oConnection - the connection to create the reliable link onoObserver - the Observer to be used for notification about state changes
BIPLink instance based on the
delivered connection or null if the connection resources are exceeded
ConnectionException - with the following reason code:
INVALID_PARAMETERS if oConnection is already in use
or it supports multiplexing.
java.lang.NullPointerException - if oConnection or oObserver is equal to null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||