|
|||||||||
| 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 ServletContextrequest - The current HttpServletRequestresponse - The current HttpServletResponse| Method Detail |
public java.lang.String getServletName()
RequestContextgetServletName in interface RequestContextpublic javax.servlet.ServletContext getServletContext()
RequestContextServletContextgetServletContext in interface RequestContextpublic javax.servlet.http.HttpServletRequest getRequest()
RequestContextgetRequest in interface RequestContextpublic javax.servlet.http.HttpServletResponse getResponse()
RequestContextgetResponse in interface RequestContextpublic ViewBeanManager getViewBeanManager()
RequestContextViewBeanManagergetViewBeanManager in interface RequestContextpublic void setViewBeanManager(ViewBeanManager value)
ViewBeanManager objectpublic ModelManager getModelManager()
RequestContextModelManagergetModelManager in interface RequestContextpublic void setModelManager(ModelManager modelManager)
ModelManager objectpublic SQLConnectionManager getSQLConnectionManager()
RequestContextSQLConnectionManagergetSQLConnectionManager in interface RequestContextpublic void setSQLConnectionManager(SQLConnectionManager sqlConnectionManager)
SQLConnectionManager objectpublic java.io.PrintWriter getMessageWriter()
RequestContextPrintWriter 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 RequestContextpublic boolean hasMessages()
RequestContexthasMessages in interface RequestContextpublic java.lang.StringBuffer getMessageBuffer()
RequestContextgetMessageWriter() method.getMessageBuffer in interface RequestContextpublic void addRequestCompletionListener(RequestCompletionListener listener)
RequestContextaddRequestCompletionListener in interface RequestContextcom.iplanet.jato.RequestContextlistener - The object wishing to be notified of the end of the requestpublic void removeRequestCompletionListener(RequestCompletionListener listener)
RequestContextremoveRequestCompletionListener in interface RequestContextcom.iplanet.jato.RequestContextlistener - 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 RequestContextpublic static void markResponseStarted(RequestContext requestContext)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||