public class AbstractWebSocketConnection extends AbstractProtocolConnection
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getProtocolRequestURL()
Returns a default debugging identifier for the connection
|
boolean |
handleRequest()
Handles a new connection.
|
void |
init()
Initialize the connection.
|
boolean |
isWaitForRead()
Return true if the connection should wait for a read before
handling the request.
|
void |
onCloseConnection()
Handles a close event when the connection is closed.
|
void |
onStartConnection()
Called when the connection starts, i.e.
|
handleResume, onAttachThread, onDetachThread
public java.lang.String getProtocolRequestURL()
AbstractProtocolConnection
getProtocolRequestURL
in interface ProtocolConnection
getProtocolRequestURL
in class AbstractProtocolConnection
public void init()
AbstractProtocolConnection
init
in interface ProtocolConnection
init
in class AbstractProtocolConnection
public boolean handleRequest() throws java.io.IOException
AbstractProtocolConnection
handleRequest
in interface ProtocolConnection
handleRequest
in class AbstractProtocolConnection
java.io.IOException
public boolean isWaitForRead()
ProtocolConnection
public void onCloseConnection()
AbstractProtocolConnection
onCloseConnection
in interface ProtocolConnection
onCloseConnection
in class AbstractProtocolConnection
public void onStartConnection()
ProtocolConnection
onStartConnection
in interface ProtocolConnection
onStartConnection
in class AbstractProtocolConnection