Modifier | Constructor and Description |
---|---|
protected |
WebSocketProtocol(byte[] binary) |
protected |
WebSocketProtocol(OctetsStream os) |
protected |
WebSocketProtocol(java.lang.String text) |
Modifier and Type | Method and Description |
---|---|
void |
broadcast(Manager manager) |
byte[] |
getBinary() |
Manager |
getManager() |
java.lang.String |
getText() |
WebSocketTransport |
getTransport() |
OctetsStream |
marshal(OctetsStream os) |
abstract void |
process() |
void |
run() |
void |
send(Transport transport) |
OctetsStream |
unmarshal(OctetsStream os) |
protected WebSocketProtocol(OctetsStream os) throws MarshalException
MarshalException
protected WebSocketProtocol(java.lang.String text)
protected WebSocketProtocol(byte[] binary)
public OctetsStream marshal(OctetsStream os)
public OctetsStream unmarshal(OctetsStream os) throws MarshalException
unmarshal
in interface Marshal
MarshalException
public void send(Transport transport) throws CodecException, java.lang.ClassCastException
CodecException
java.lang.ClassCastException
public void broadcast(Manager manager) throws CodecException, java.lang.ClassCastException
CodecException
java.lang.ClassCastException
public byte[] getBinary()
public java.lang.String getText()
public WebSocketTransport getTransport()
public Manager getManager()
public void run()
run
in interface java.lang.Runnable
public abstract void process() throws java.lang.Exception
java.lang.Exception