public abstract class AbstractSocketCommunicationHandler extends Object implements CommunicationHandler
Modifier and Type | Field and Description |
---|---|
protected Cipher |
cipher |
static Logger |
log |
BROADCAST_SESSION
Constructor and Description |
---|
AbstractSocketCommunicationHandler(Cipher cipher) |
Modifier and Type | Method and Description |
---|---|
protected Message |
readMessage(InputStream in) |
void |
sendMessage(Message msg,
String scope)
Send the given message to a specific scope
|
void |
sendMessage(Message msg,
String[] scopes)
Send the given message to a set of scope
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
start, stop
public AbstractSocketCommunicationHandler(Cipher cipher)
protected Message readMessage(InputStream in) throws Exception
Exception
public void sendMessage(Message msg, String scope)
CommunicationHandler
sendMessage
in interface CommunicationHandler
msg
- the Message
to sendscope
- the scope of the destination of the messagepublic void sendMessage(Message msg, String[] scopes)
CommunicationHandler
sendMessage
in interface CommunicationHandler
msg
- the Message
to sendscopes
- the set of scope as destination of the messageCopyright © 2015 universAAL Consortium. All Rights Reserved.