|
||||||||||
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 |
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. |
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 HttpServletRequest
getSession
in class StubServletRequest
create
- 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 ProtocolConnection
java.io.IOException
public boolean handleResume() throws java.io.IOException
ProtocolConnection
handleResume
in interface ProtocolConnection
java.io.IOException
public void init()
ProtocolConnection
init
in interface ProtocolConnection
public boolean isWaitForRead()
ProtocolConnection
isWaitForRead
in interface ProtocolConnection
public void onCloseConnection()
ProtocolConnection
onCloseConnection
in interface ProtocolConnection
public void onStartConnection()
ProtocolConnection
onStartConnection
in interface ProtocolConnection
public void onAttachThread()
ProtocolConnection
onAttachThread
in interface ProtocolConnection
public void onDetachThread()
ProtocolConnection
onDetachThread
in interface ProtocolConnection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |