|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.ServletRequestWrapper javax.servlet.http.HttpServletRequestWrapper com.vaadin.terminal.gwt.server.WrappedHttpServletRequest
public class WrappedHttpServletRequest
Wrapper for HttpServletRequest
.
WrappedRequest
,
WrappedHttpServletResponse
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from interface com.vaadin.terminal.WrappedRequest |
---|
WrappedRequest.BrowserDetails |
Field Summary |
---|
Fields inherited from interface javax.servlet.http.HttpServletRequest |
---|
BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH |
Constructor Summary | |
---|---|
WrappedHttpServletRequest(HttpServletRequest request,
DeploymentConfiguration deploymentConfiguration)
Wraps a http servlet request and associates with a deployment configuration |
Method Summary | |
---|---|
static WrappedHttpServletRequest |
cast(WrappedRequest request)
Helper method to get a WrappedHttpServletRequest from a
WrappedRequest . |
WrappedRequest.BrowserDetails |
getBrowserDetails()
Gets detailed information about the browser from which the request originated. |
DeploymentConfiguration |
getDeploymentConfiguration()
Gets the deployment configuration for the context of this request. |
HttpServletRequest |
getHttpServletRequest()
Gets the original, unwrapped HTTP servlet request. |
String |
getRequestPathInfo()
Gets the path of the requested resource relative to the application. |
Object |
getSessionAttribute(String name)
Gets an attribute from the session associated with this request. |
int |
getSessionMaxInactiveInterval()
Returns the maximum time interval, in seconds, that the session associated with this request will be kept open between client accesses. |
void |
setSessionAttribute(String name,
Object attribute)
Saves an attribute value in the session associated with this request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.vaadin.terminal.WrappedRequest |
---|
getAttribute, getContentLength, getContentType, getHeader, getInputStream, getLocale, getParameter, getParameterMap, getRemoteAddr, isSecure, setAttribute |
Methods inherited from interface javax.servlet.ServletRequest |
---|
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding |
Constructor Detail |
---|
public WrappedHttpServletRequest(HttpServletRequest request, DeploymentConfiguration deploymentConfiguration)
request
- the http servlet request to wrapdeploymentConfiguration
- the associated deployment configurationMethod Detail |
---|
public String getRequestPathInfo()
WrappedRequest
null
if no path information is available. Does
always start with / if the path isn't null
.
getRequestPathInfo
in interface WrappedRequest
HttpServletRequest.getPathInfo()
public int getSessionMaxInactiveInterval()
WrappedRequest
getSessionMaxInactiveInterval
in interface WrappedRequest
HttpSession.getMaxInactiveInterval()
,
javax.portlet.PortletSession#getMaxInactiveInterval()
public Object getSessionAttribute(String name)
WrappedRequest
getSessionAttribute
in interface WrappedRequest
name
- the name of the attribute
null
if the attribute is not
defined in the sessionHttpSession.getAttribute(String)
,
javax.portlet.PortletSession#getAttribute(String)
public void setSessionAttribute(String name, Object attribute)
WrappedRequest
setSessionAttribute
in interface WrappedRequest
name
- the name of the attributeattribute
- the attribute valueHttpSession.setAttribute(String, Object)
,
javax.portlet.PortletSession#setAttribute(String, Object)
public HttpServletRequest getHttpServletRequest()
public DeploymentConfiguration getDeploymentConfiguration()
WrappedRequest
getDeploymentConfiguration
in interface WrappedRequest
DeploymentConfiguration
public WrappedRequest.BrowserDetails getBrowserDetails()
WrappedRequest
Application.getRoot(com.vaadin.terminal.WrappedRequest)
is called again
after throwing RootRequiresMoreInformationException
or in
Root.init(WrappedRequest)
for a Root class not annotated with
EagerInit
getBrowserDetails
in interface WrappedRequest
null
if details are not
availableWrappedRequest.BrowserDetails
public static WrappedHttpServletRequest cast(WrappedRequest request)
WrappedHttpServletRequest
from a
WrappedRequest
. Aside from casting, this method also takes
care of situations where there's another level of wrapping.
request
- a wrapped request
ClassCastException
- if the wrapped request doesn't wrap a http servlet request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |