|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface WebContext
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 |
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. |
| Method Detail |
|---|
Container getContainer()
javax.servlet.http.HttpSession getSession()
HttpServletRequest.getSession()javax.servlet.http.HttpSession getSession(boolean create)
create - false to return null if there's no current session
HttpServletRequest.getSession(boolean)javax.servlet.ServletConfig getServletConfig()
javax.servlet.ServletContext getServletContext()
javax.servlet.http.HttpServletRequest getHttpServletRequest()
javax.servlet.http.HttpServletResponse getHttpServletResponse()
java.lang.String forwardToString(java.lang.String url)
throws javax.servlet.ServletException,
java.io.IOException
url - The URL to forward to
java.io.IOException - if the target resource throws this exception
javax.servlet.ServletException - if the target resource throws this exception
java.lang.IllegalStateException - if the response was already committedjava.lang.String getVersion()
|
Copyright ¨ 2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||