public class NautilusServerEndpoint extends AbstractWebSocketListener
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
onClose() |
void |
onClose(WebSocketContext context)
Called when the peer closes the connection gracefully.
|
protected void |
onFlow(int credit,
long sequence) |
void |
onReadBinary(WebSocketContext context,
java.io.InputStream is)
Called when a binary message is available
|
protected void |
onSend(java.io.InputStream is) |
void |
onStart(WebSocketContext context)
Called when the connection is established
|
protected void |
publishStart(java.io.InputStream is) |
protected int |
readInt(java.io.InputStream is) |
protected long |
readLong(java.io.InputStream is) |
protected void |
receiveStart(java.io.InputStream is) |
java.lang.String |
toString() |
protected void |
write(java.io.OutputStream os,
java.lang.String msg) |
protected void |
writeInt(java.io.OutputStream os,
int value) |
protected void |
writeLong(java.io.OutputStream os,
long value) |
onDisconnect, onReadText, onTimeout
protected void publishStart(java.io.InputStream is) throws java.io.IOException
java.io.IOException
protected void receiveStart(java.io.InputStream is) throws java.io.IOException
java.io.IOException
protected void onSend(java.io.InputStream is) throws java.io.IOException
java.io.IOException
protected void onFlow(int credit, long sequence)
protected void onClose()
public void onStart(WebSocketContext context) throws java.io.IOException
AbstractWebSocketListener
onStart
in interface WebSocketListener
onStart
in class AbstractWebSocketListener
java.io.IOException
public void onReadBinary(WebSocketContext context, java.io.InputStream is) throws java.io.IOException
AbstractWebSocketListener
onReadBinary
in interface WebSocketListener
onReadBinary
in class AbstractWebSocketListener
java.io.IOException
public void onClose(WebSocketContext context) throws java.io.IOException
AbstractWebSocketListener
onClose
in interface WebSocketListener
onClose
in class AbstractWebSocketListener
java.io.IOException
protected final int readInt(java.io.InputStream is) throws java.io.IOException
java.io.IOException
protected final long readLong(java.io.InputStream is) throws java.io.IOException
java.io.IOException
protected void writeInt(java.io.OutputStream os, int value) throws java.io.IOException
java.io.IOException
protected void writeLong(java.io.OutputStream os, long value) throws java.io.IOException
java.io.IOException
protected void write(java.io.OutputStream os, java.lang.String msg) throws java.io.IOException
java.io.IOException
public void close()
public java.lang.String toString()
toString
in class java.lang.Object