public class VaadinServletRequest extends HttpServletRequestWrapper implements VaadinRequest
HttpServletRequest
.VaadinRequest
,
VaadinServletResponse
Constructor and Description |
---|
VaadinServletRequest(HttpServletRequest request,
VaadinServletService vaadinService)
Wraps a http servlet request and associates with a vaadin service.
|
Modifier and Type | Method and Description |
---|---|
static VaadinServletRequest |
getCurrent()
Gets the currently processed Vaadin servlet request.
|
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.
|
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
public VaadinServletRequest(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()
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)
public HttpServletRequest getHttpServletRequest()
public VaadinServletService getService()
VaadinRequest
getService
in interface VaadinRequest
VaadinService
public static VaadinServletRequest getCurrent()
getCurrent
in interface VaadinRequest
null
Copyright © 2020. All rights reserved.