public interface ProtocolConnection
ProtocolConnections are created by Protocol.createConnection
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getProtocolRequestURL()
Returns a request URL for debugging/management.
|
boolean |
handleRequest()
Handles a new request.
|
boolean |
handleResume()
Handles a resumption of the connection for an async/comet request.
|
void |
init()
Initialize the connection.
|
boolean |
isWaitForRead()
Return true if the connection should wait for a read before
handling the request.
|
void |
onAttachThread()
Called when the connection is attached to a thread
|
void |
onCloseConnection()
Handles a close event when the connection is closed.
|
void |
onDetachThread()
Called when the connection is detached from a thread
|
void |
onStartConnection()
Called when the connection starts, i.e.
|
void init()
boolean isWaitForRead()
void onAttachThread()
void onDetachThread()
void onStartConnection()
void onCloseConnection()
boolean handleRequest() throws java.io.IOException
java.io.IOException
java.lang.String getProtocolRequestURL()
boolean handleResume() throws java.io.IOException
java.io.IOException