public abstract class AbstractWebSocketProtocol extends java.lang.Object implements Protocol
Constructor and Description |
---|
AbstractWebSocketProtocol() |
Modifier and Type | Method and Description |
---|---|
ProtocolConnection |
createConnection(SocketLink link)
Creates a new protocol connection.
|
protected abstract WebSocketEndpoint |
createEndpoint() |
protected java.lang.String |
getHeaderString() |
java.lang.String |
getProtocolName()
Returns the protocol name.
|
protected boolean |
readHeader(ReadStream is)
Validate the header.
|
protected void |
writeHeader(WriteStream os) |
public ProtocolConnection createConnection(SocketLink link)
Protocol
createConnection
in interface Protocol
public java.lang.String getProtocolName()
Protocol
getProtocolName
in interface Protocol
protected java.lang.String getHeaderString()
protected abstract WebSocketEndpoint createEndpoint()
protected boolean readHeader(ReadStream is) throws java.io.IOException
java.io.IOException
protected void writeHeader(WriteStream os) throws java.io.IOException
java.io.IOException