public class VaadinServletRequest extends javax.servlet.http.HttpServletRequestWrapper implements VaadinRequest
HttpServletRequest
.VaadinRequest
,
VaadinServletResponse
,
Serialized FormConstructor and Description |
---|
VaadinServletRequest(javax.servlet.http.HttpServletRequest request,
VaadinServletService vaadinService)
Wraps a http servlet request and associates with a vaadin service
|
Modifier and Type | Method and Description |
---|---|
javax.servlet.http.HttpServletRequest |
getHttpServletRequest()
Gets the original, unwrapped HTTP servlet request.
|
VaadinServletService |
getService()
Gets the vaadin service for the context of this request.
|
WrappedSession |
getWrappedSession()
Gets the session associated with this request, creating a new if there is
no session.
|
WrappedSession |
getWrappedSession(boolean allowSessionCreation)
Gets the session associated with this request, optionally creating a new
if there is no session.
|
authenticate, getAuthType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getIntHeader, getMethod, getPart, getParts, getPathInfo, getPathTranslated, getQueryString, getRemoteUser, getRequestedSessionId, getRequestURI, getRequestURL, getServletPath, getSession, getSession, getUserPrincipal, isRequestedSessionIdFromCookie, isRequestedSessionIdFromUrl, isRequestedSessionIdFromURL, isRequestedSessionIdValid, isUserInRole, login, logout
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequest, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, isWrapperFor, isWrapperFor, removeAttribute, setAttribute, setCharacterEncoding, setRequest, startAsync, startAsync
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttribute, getAttributeNames, getAuthType, getCharacterEncoding, getContentLength, getContentType, getContextPath, getCookies, getDateHeader, getHeader, getHeaderNames, getHeaders, getInputStream, getLocale, getLocales, getMethod, getParameter, getParameterMap, getPathInfo, getReader, getRemoteAddr, getRemoteHost, getRemotePort, getRemoteUser, getUserPrincipal, isSecure, isUserInRole, removeAttribute, setAttribute
getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentType, getDispatcherType, getInputStream, getLocalAddr, getLocale, getLocales, getLocalName, getLocalPort, getParameter, getParameterMap, getParameterNames, getParameterValues, getProtocol, getReader, getRealPath, getRemoteAddr, getRemoteHost, getRemotePort, getRequestDispatcher, getScheme, getServerName, getServerPort, getServletContext, isAsyncStarted, isAsyncSupported, isSecure, removeAttribute, setAttribute, setCharacterEncoding, startAsync, startAsync
public VaadinServletRequest(javax.servlet.http.HttpServletRequest request, VaadinServletService vaadinService)
request
- the http servlet request to wrapvaadinService
- the associated vaadin servicepublic WrappedSession getWrappedSession()
VaadinRequest
getWrappedSession
in interface VaadinRequest
WrappedSession
,
HttpServletRequest.getSession()
,
PortletRequest#getPortletSession()
public WrappedSession getWrappedSession(boolean allowSessionCreation)
VaadinRequest
getWrappedSession
in interface VaadinRequest
allowSessionCreation
- true
to create a new session for this request if
necessary; false
to return null
if
there's no current sessionWrappedSession
,
HttpServletRequest.getSession(boolean)
,
PortletRequest#getPortletSession(boolean)
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
public VaadinServletService getService()
VaadinRequest
getService
in interface VaadinRequest
VaadinService
Copyright © 2019 Vaadin Ltd. All rights reserved.