|
||||||||||
| 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 |
onCloseConnection()
Handles a close event when the connection is closed. |
void |
onStartConnection()
Called when the connection starts, i.e. |
| Method Detail |
|---|
void init()
boolean isWaitForRead()
void onStartConnection()
boolean handleRequest()
throws java.io.IOException
java.io.IOExceptionjava.lang.String getProtocolRequestURL()
boolean handleResume()
throws java.io.IOException
java.io.IOExceptionvoid onCloseConnection()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||