public class StreamSemantic extends java.lang.Object implements ISemantic
Modifier and Type | Class and Description |
---|---|
class |
StreamSemantic.StreamConnector
Implements a stream connector for internal use during
forwarding on the same device.
|
EXTENSION_COMPRESSION, EXTENSION_DISCOVERY, EXTENSION_ENCRYPTION, EXTENSION_ROUTING, EXTENSION_SEMANTIC, EXTENSION_SERIALIZATION, EXTENSION_TRANSCEIVER
Constructor and Description |
---|
StreamSemantic()
Creates a new stream semantic plug-in.
|
Modifier and Type | Method and Description |
---|---|
void |
deliverIncoming(IStreamConnector connector,
ISession session)
Called when a remote device wants to initialize a stream.
|
PluginDescription |
getPluginDescription()
Returns the description of the plug-in.
|
void |
performOutgoing(Invocation invocation,
ISession session)
Called when a stream to a remote device should be initialized.
|
boolean |
prepareSession(PluginDescription d,
NFCollection c,
ISession s)
Tests whether the specified requirements can be fulfilled by the plug-in
and prepares a session for the specified requirements.
|
void |
setSemanticManager(ISemanticManager manager)
Called before the plug-in is started to set the semantic
plug-in manager.
|
void |
start()
Called to start the plug-in.
|
void |
stop()
Called to stop the plug-in.
|
public void deliverIncoming(IStreamConnector connector, ISession session)
deliverIncoming
in interface IDispatcher
connector
- The stream connector of the remote device.session
- The session of the with remote device.public void performOutgoing(Invocation invocation, ISession session)
performOutgoing
in interface ISemantic
invocation
- The invocation.session
- The session with the remote device.public boolean prepareSession(PluginDescription d, NFCollection c, ISession s)
prepareSession
in interface ISemantic
d
- The plug-in description of the remote semantic plug-in.c
- The requirements of the session.s
- The session to adjust.public void setSemanticManager(ISemanticManager manager)
setSemanticManager
in interface ISemantic
manager
- The semantic plug-in manager.public PluginDescription getPluginDescription()
getPluginDescription
in interface IPlugin