public interface ISession
Modifier and Type | Method and Description |
---|---|
short |
getAbility()
Returns the ability of the session.
|
ISession |
getChild()
Returns the child session bound to this session.
|
java.lang.Object |
getLocal()
Returns some local parameters that have been set previously.
|
byte[] |
getRemote()
Returns the remote parameters that are set at this session.
|
SystemID |
getTarget()
Returns the target of the session.
|
boolean |
isIncoming()
Determines whether the session specification denotes an incoming
session specification.
|
boolean |
isOutgoing()
Determines whether the session specification denotes an outgoing
session.
|
void |
setLocal(java.lang.Object data)
Sets the local parameters during the negotiation phase.
|
void |
setRemote(byte[] data)
Sets the remote parameters that are transfered to a remote
plug-in whenever the session is opened.
|
boolean |
supportsRemote()
Determines whether the session specification supports remote
parameters.
|
java.lang.Object getLocal()
void setLocal(java.lang.Object data)
data
- The local parameters to set.void setRemote(byte[] data)
data
- The remote data that is transfered to the other
end point.java.lang.RuntimeException
- Thrown if the remote data cannot
be accessed.byte[] getRemote()
java.lang.RuntimeException
- Thrown if the remote data cannot
be accessed.boolean supportsRemote()
boolean isIncoming()
boolean isOutgoing()
SystemID getTarget()
short getAbility()
ISession getChild()