|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.server.http.StubServletRequest
com.caucho.server.http.StubSessionContextRequest
public class StubSessionContextRequest
Used when there isn't any actual request object, e.g. for calling run-at servlets.
| Field Summary |
|---|
| Fields inherited from interface javax.servlet.http.HttpServletRequest |
|---|
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
| Constructor Summary | |
|---|---|
StubSessionContextRequest(WebApp webApp,
java.lang.String sessionId)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getProtocolRequestURL()
Returns a request URL for debugging/management. |
HttpSession |
getSession(boolean create)
Returns a session. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StubSessionContextRequest(WebApp webApp,
java.lang.String sessionId)
| Method Detail |
|---|
public HttpSession getSession(boolean create)
HttpServletRequest
getSession in interface HttpServletRequestgetSession in class StubServletRequestcreate - If true, then create a new session if none exists.public java.lang.String getProtocolRequestURL()
ProtocolConnection
getProtocolRequestURL in interface ProtocolConnection
public boolean handleRequest()
throws java.io.IOException
ProtocolConnection
handleRequest in interface ProtocolConnectionjava.io.IOException
public boolean handleResume()
throws java.io.IOException
ProtocolConnection
handleResume in interface ProtocolConnectionjava.io.IOExceptionpublic void init()
ProtocolConnection
init in interface ProtocolConnectionpublic boolean isWaitForRead()
ProtocolConnection
isWaitForRead in interface ProtocolConnectionpublic void onCloseConnection()
ProtocolConnection
onCloseConnection in interface ProtocolConnectionpublic void onStartConnection()
ProtocolConnection
onStartConnection in interface ProtocolConnection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||