|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.iplanet.jato.RequestContextImpl
A default implementation if RequestContext
Field Summary | |
static java.lang.String |
FLAG_RESPONSE_STARTED
|
Fields inherited from interface com.iplanet.jato.RequestContext |
DISPLAY_PHASE, SUBMIT_PHASE |
Constructor Summary | |
RequestContextImpl()
Default constructor |
|
RequestContextImpl(java.lang.String servletName,
javax.servlet.ServletContext servletContext,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Create an instance with the specified core objects |
Method Summary | |
void |
addRequestCompletionListener(RequestCompletionListener listener)
Adds a request completion listener to the current request. |
java.lang.StringBuffer |
getMessageBuffer()
Returns the buffer of accumulated messages. |
java.io.PrintWriter |
getMessageWriter()
Returns a PrintWriter that can be used to output
application information to the bottom of the rendered HTML resonse. |
ModelManager |
getModelManager()
Returns the request's ModelManager |
javax.servlet.http.HttpServletRequest |
getRequest()
Returns the request object for the current request |
int |
getRequestPhase()
Returns a code for the current phase the request is in. |
javax.servlet.http.HttpServletResponse |
getResponse()
Returns the response object for the current request |
javax.servlet.ServletContext |
getServletContext()
Returns the request handling servlet's ServletContext |
java.lang.String |
getServletName()
Returns the request handling servlet's logical name |
SQLConnectionManager |
getSQLConnectionManager()
Returns the request's SQLConnectionManager |
ViewBeanManager |
getViewBeanManager()
Returns the request's ViewBeanManager |
boolean |
hasMessages()
Returns true if any messages have been written to the message buffer |
static void |
markResponseStarted(RequestContext requestContext)
|
protected void |
notifyRequestCompletionListeners()
Notifies all registered RequestCompletionListeners that
the current request is at an end |
void |
removeRequestCompletionListener(RequestCompletionListener listener)
Removes a request completion listener from the request context. |
void |
setModelManager(ModelManager modelManager)
Set the request context's singleton ModelManager object |
void |
setSQLConnectionManager(SQLConnectionManager sqlConnectionManager)
Set the request context's singleton SQLConnectionManager object |
void |
setViewBeanManager(ViewBeanManager value)
Set the request context's singleton ViewBeanManager object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String FLAG_RESPONSE_STARTED
Constructor Detail |
public RequestContextImpl()
public RequestContextImpl(java.lang.String servletName, javax.servlet.ServletContext servletContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
servletContext
- The current ServletContext
request
- The current HttpServletRequest
response
- The current HttpServletResponse
Method Detail |
public java.lang.String getServletName()
RequestContext
getServletName
in interface RequestContext
public javax.servlet.ServletContext getServletContext()
RequestContext
ServletContext
getServletContext
in interface RequestContext
public javax.servlet.http.HttpServletRequest getRequest()
RequestContext
getRequest
in interface RequestContext
public javax.servlet.http.HttpServletResponse getResponse()
RequestContext
getResponse
in interface RequestContext
public ViewBeanManager getViewBeanManager()
RequestContext
ViewBeanManager
getViewBeanManager
in interface RequestContext
public void setViewBeanManager(ViewBeanManager value)
ViewBeanManager
objectpublic ModelManager getModelManager()
RequestContext
ModelManager
getModelManager
in interface RequestContext
public void setModelManager(ModelManager modelManager)
ModelManager
objectpublic SQLConnectionManager getSQLConnectionManager()
RequestContext
SQLConnectionManager
getSQLConnectionManager
in interface RequestContext
public void setSQLConnectionManager(SQLConnectionManager sqlConnectionManager)
SQLConnectionManager
objectpublic java.io.PrintWriter getMessageWriter()
RequestContext
PrintWriter
that can be used to output
application information to the bottom of the rendered HTML resonse.
Anything printed through this object will be buffered and then
appended in a block following the flushing of the response. This
mechanism is intended as a development time aid, a means of attaching
application information to the relevant page.getMessageWriter
in interface RequestContext
public boolean hasMessages()
RequestContext
hasMessages
in interface RequestContext
public java.lang.StringBuffer getMessageBuffer()
RequestContext
getMessageWriter()
method.getMessageBuffer
in interface RequestContext
public void addRequestCompletionListener(RequestCompletionListener listener)
RequestContext
addRequestCompletionListener
in interface RequestContext
com.iplanet.jato.RequestContext
listener
- The object wishing to be notified of the end of the requestpublic void removeRequestCompletionListener(RequestCompletionListener listener)
RequestContext
removeRequestCompletionListener
in interface RequestContext
com.iplanet.jato.RequestContext
listener
- The object wishing to be removed from the notification listprotected void notifyRequestCompletionListeners()
RequestCompletionListeners
that
the current request is at an endpublic int getRequestPhase()
getRequestPhase
in interface RequestContext
public static void markResponseStarted(RequestContext requestContext)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |