|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ltd.getahead.dwr.ExecutionContext
public class ExecutionContext
Class to enable us to access servlet parameters.
| Method Summary | |
|---|---|
java.lang.String |
forwardToString(java.lang.String url)
Forward a request to a given URL and catch the data written to it |
static ExecutionContext |
get()
Deprecated. Use WebContextFactory.get() for better results |
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 |
| Method Detail |
|---|
public javax.servlet.http.HttpSession getSession()
WebContext
getSession in interface WebContextHttpServletRequest.getSession()public javax.servlet.http.HttpSession getSession(boolean create)
WebContext
getSession in interface WebContextcreate - false to return null if there's no current session
HttpServletRequest.getSession(boolean)public javax.servlet.ServletConfig getServletConfig()
WebContext
getServletConfig in interface WebContextpublic javax.servlet.ServletContext getServletContext()
WebContext
getServletContext in interface WebContextpublic javax.servlet.http.HttpServletRequest getHttpServletRequest()
WebContext
getHttpServletRequest in interface WebContextpublic 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 WebContexturl - 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 WebContextpublic Container getContainer()
WebContext
getContainer in interface WebContextpublic static ExecutionContext get()
|
Copyright ¨ 2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||