|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ProtocolConnection
Protocol specific information for each connection. ProtocolConnection is reused to reduce memory allocations.
ProtocolConnections are created by Protocol.createConnection
Method Summary | |
---|---|
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. |
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |