|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.ServletRequestWrapper
javax.servlet.http.HttpServletRequestWrapper
com.vaadin.server.WrappedHttpServletRequest
public class WrappedHttpServletRequest
Wrapper for HttpServletRequest.
WrappedRequest,
WrappedHttpServletResponse,
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.vaadin.server.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(javax.servlet.http.HttpServletRequest request,
VaadinServlet.ServletService vaadinService)
Wraps a http servlet request and associates with a vaadin service |
|
| 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. |
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
Gets the original, unwrapped HTTP servlet request. |
java.lang.String |
getRequestPathInfo()
Gets the path of the requested resource relative to the application. |
VaadinServlet.ServletService |
getVaadinService()
Gets the vaadin service for the context of this request. |
WrappedSession |
getWrappedSession()
Gets the session associated with this request. |
| Methods inherited from class javax.servlet.http.HttpServletRequestWrapper |
|---|
getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole |
| Methods inherited from class javax.servlet.ServletRequestWrapper |
|---|
getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, isSecure, removeAttribute, setAttribute, setCharacterEncoding, setRequest |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.vaadin.server.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(javax.servlet.http.HttpServletRequest request,
VaadinServlet.ServletService vaadinService)
request - the http servlet request to wrapvaadinService - the associated vaadin service| Method Detail |
|---|
public java.lang.String getRequestPathInfo()
WrappedRequestnull if no path information is available. Does
always start with / if the path isn't null.
getRequestPathInfo in interface WrappedRequestHttpServletRequest.getPathInfo()public WrappedSession getWrappedSession()
WrappedRequest
getWrappedSession in interface WrappedRequestWrappedSession,
HttpServletRequest.getSession(),
PortletRequest.getPortletSession()public javax.servlet.http.HttpServletRequest getHttpServletRequest()
public VaadinServlet.ServletService getVaadinService()
WrappedRequest
getVaadinService in interface WrappedRequestVaadinServicepublic WrappedRequest.BrowserDetails getBrowserDetails()
WrappedRequestUI.init(WrappedRequest).
getBrowserDetails in interface WrappedRequestnull if details are not
availableWrappedRequest.BrowserDetailspublic 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
java.lang.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 | |||||||||