|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.network.listen.AbstractProtocolConnection
public abstract class AbstractProtocolConnection
Protocol specific information for each request. ServerRequest is reused to reduce memory allocations.
ServerRequests are created by Server.createRequest()
| Constructor Summary | |
|---|---|
AbstractProtocolConnection()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getProtocolRequestURL()
Returns a default debugging identifier for the connection |
abstract boolean |
handleRequest()
Handles a new connection. |
boolean |
handleResume()
Handles a resumption of the connection for an async/comet request. |
void |
init()
Initialize the connection. |
void |
onCloseConnection()
Handles a close event when the connection is closed. |
void |
onStartConnection()
Called when the connection starts, i.e. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.caucho.network.listen.ProtocolConnection |
|---|
isWaitForRead |
| Constructor Detail |
|---|
public AbstractProtocolConnection()
| Method Detail |
|---|
public void init()
init in interface ProtocolConnectionpublic void onStartConnection()
ProtocolConnection
onStartConnection in interface ProtocolConnectionpublic java.lang.String getProtocolRequestURL()
getProtocolRequestURL in interface ProtocolConnection
public abstract boolean handleRequest()
throws java.io.IOException
handleRequest in interface ProtocolConnectionconn - Information about the connection, including buffered
read and write streams.
java.io.IOException
public boolean handleResume()
throws java.io.IOException
handleResume in interface ProtocolConnectionjava.io.IOExceptionpublic void onCloseConnection()
onCloseConnection in interface ProtocolConnection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||