|
|||||||||
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.
Field Summary |
---|
Fields inherited from interface org.directwebremoting.WebContext |
---|
ATTRIBUTE_DWR |
Method Summary | |
---|---|
java.lang.String |
forwardToString(java.lang.String url)
Deprecated. Forward a request to a given URL and catch the data written to it. |
static ExecutionContext |
get()
Deprecated. Use WebContextFactory.get() for better results |
java.util.Collection |
getAllScriptSessions()
Deprecated. Get a list of all the ScriptSessions known to this server at the given time. |
Container |
getContainer()
Deprecated. Accessor for the IoC container. |
java.lang.String |
getCurrentPage()
Deprecated. What is the URL of the current page. |
HttpServletRequest |
getHttpServletRequest()
Deprecated. Accessor for the http request information. |
HttpServletResponse |
getHttpServletResponse()
Deprecated. Accessor for the http response bean. |
ScriptSession |
getScriptSession()
Deprecated. Get the script session that represents the currently viewed page in the same way that an HttpSession represents a cookie. |
java.util.Collection |
getScriptSessionsByPage(java.lang.String page)
Deprecated. Get a list of all ScriptSessions on a given page. |
ServletConfig |
getServletConfig()
Deprecated. Accessor for the servlet config. |
ServletContext |
getServletContext()
Deprecated. Returns the ServletContext to which this session belongs. |
HttpSession |
getSession()
Deprecated. Returns the current session associated with this request, or if the request does not have a session, creates one. |
HttpSession |
getSession(boolean create)
Deprecated. 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()
Deprecated. Fish the version number out of the dwr.properties file. |
void |
setCurrentPageInformation(java.lang.String page,
java.lang.String scriptSessionId)
Deprecated. For system use only: This method allows the system to fill in the session id and page id when they are discovered. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public HttpSession getSession()
WebContext
getSession
in interface WebContext
HttpServletRequest#getSession()
public HttpSession getSession(boolean create)
WebContext
getSession
in interface WebContext
create
- false to return null if there's no current session
HttpServletRequest#getSession(boolean)
public ServletConfig getServletConfig()
ServerContext
getServletConfig
in interface ServerContext
public ServletContext getServletContext()
ServerContext
getServletContext
in interface ServerContext
public HttpServletRequest getHttpServletRequest()
WebContext
getHttpServletRequest
in interface WebContext
public HttpServletResponse getHttpServletResponse()
WebContext
You can't use this request to directly reply to the response or to add headers or cookies.
getHttpServletResponse
in interface WebContext
public java.lang.String forwardToString(java.lang.String url) throws ServletException, java.io.IOException
WebContext
request.setAttribute(WebContext.ATTRIBUTE_DWR, Boolean.TRUE);
forwardToString
in interface WebContext
url
- The URL to forward to
ServletException
- if the target resource throws this exception
java.io.IOException
- if the target resource throws this exceptionpublic java.lang.String getVersion()
ServerContext
getVersion
in interface ServerContext
public ScriptSession getScriptSession()
WebContext
getScriptSession
in interface WebContext
public java.util.Collection getAllScriptSessions()
ServerContext
getAllScriptSessions
in interface ServerContext
public java.util.Collection getScriptSessionsByPage(java.lang.String page)
ServerContext
getScriptSessionsByPage
in interface ServerContext
page
- The URL including 'http://', up to (but not including) '?' or '#'
public Container getContainer()
ServerContext
getContainer
in interface ServerContext
public void setCurrentPageInformation(java.lang.String page, java.lang.String scriptSessionId)
WebContext
setCurrentPageInformation
in interface WebContext
page
- The URL of the current pagescriptSessionId
- The session id passed in by the browserpublic java.lang.String getCurrentPage()
WebContext
getCurrentPage
in interface WebContext
public static ExecutionContext get()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |