|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ltd.getahead.dwr.impl.DefaultWebContext
A default implementation of WebContext
Constructor Summary | |
DefaultWebContext(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.ServletConfig config,
javax.servlet.ServletContext context,
Container container)
Create a new DefaultWebContext |
Method Summary | |
java.lang.String |
forwardToString(java.lang.String url)
Forward a request to a given URL and catch the data written to it |
Container |
getContainer()
Accessor for the IoC container. |
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
Accessor for the http request information. |
javax.servlet.http.HttpServletResponse |
getHttpServletResponse()
Accessor for the http response bean. |
javax.servlet.ServletConfig |
getServletConfig()
Accessor for the servlet config. |
javax.servlet.ServletContext |
getServletContext()
Returns the ServletContext to which this session belongs. |
javax.servlet.http.HttpSession |
getSession()
Returns the current session associated with this request, or if the request does not have a session, creates one. |
javax.servlet.http.HttpSession |
getSession(boolean create)
Returns the current HttpSession associated with this request or, if there is no current session and create is true, returns a new session. |
java.lang.String |
getVersion()
Fish the version number out of the dwr.properties file. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultWebContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.ServletConfig config, javax.servlet.ServletContext context, Container container)
request
- The incoming http requestresponse
- The outgoing http replyconfig
- The servlet configurationcontext
- The servlet contextcontainer
- The IoC containerWebContextBuilder.set(HttpServletRequest, HttpServletResponse, ServletConfig, ServletContext, Container)
Method Detail |
public Container getContainer()
WebContext
getContainer
in interface WebContext
public javax.servlet.http.HttpSession getSession()
WebContext
getSession
in interface WebContext
HttpServletRequest.getSession()
public javax.servlet.http.HttpSession getSession(boolean create)
WebContext
getSession
in interface WebContext
create
- false to return null if there's no current session
HttpServletRequest.getSession(boolean)
public javax.servlet.ServletConfig getServletConfig()
WebContext
getServletConfig
in interface WebContext
public javax.servlet.ServletContext getServletContext()
WebContext
getServletContext
in interface WebContext
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
WebContext
getHttpServletRequest
in interface WebContext
public javax.servlet.http.HttpServletResponse getHttpServletResponse()
WebContext
getHttpServletResponse
in interface WebContext
public java.lang.String forwardToString(java.lang.String url) throws javax.servlet.ServletException, java.io.IOException
WebContext
forwardToString
in interface WebContext
url
- The URL to forward to
javax.servlet.ServletException
- if the target resource throws this exception
java.io.IOException
- if the target resource throws this exceptionpublic java.lang.String getVersion()
WebContext
getVersion
in interface WebContext
|
Copyright ? 2005 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |