Class VaadinServletRequest

    • Field Summary

      • Fields inherited from interface javax.servlet.http.HttpServletRequest

        BASIC_AUTH, CLIENT_CERT_AUTH, DIGEST_AUTH, FORM_AUTH
    • Constructor Summary

      Constructors 
      Constructor Description
      VaadinServletRequest​(javax.servlet.http.HttpServletRequest request, VaadinServletService vaadinService)
      Wraps a http servlet request and associates with a vaadin service
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class javax.servlet.http.HttpServletRequestWrapper

        authenticate, changeSessionId, 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, upgrade
      • Methods inherited from class javax.servlet.ServletRequestWrapper

        getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, 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
      • Methods inherited from interface javax.servlet.ServletRequest

        getAsyncContext, getAttribute, getAttributeNames, getCharacterEncoding, getContentLength, getContentLengthLong, 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
    • Constructor Detail

      • VaadinServletRequest

        public VaadinServletRequest​(javax.servlet.http.HttpServletRequest request,
                                    VaadinServletService vaadinService)
        Wraps a http servlet request and associates with a vaadin service
        Parameters:
        request - the http servlet request to wrap
        vaadinService - the associated vaadin service
    • Method Detail

      • getWrappedSession

        public WrappedSession getWrappedSession()
        Description copied from interface: VaadinRequest
        Gets the session associated with this request, creating a new if there is no session.
        Specified by:
        getWrappedSession in interface VaadinRequest
        Returns:
        the wrapped session for this request
        See Also:
        WrappedSession, HttpServletRequest.getSession()
      • getWrappedSession

        public WrappedSession getWrappedSession​(boolean allowSessionCreation)
        Description copied from interface: VaadinRequest
        Gets the session associated with this request, optionally creating a new if there is no session.
        Specified by:
        getWrappedSession in interface VaadinRequest
        Parameters:
        allowSessionCreation - true to create a new session for this request if necessary; false to return null if there's no current session
        Returns:
        the wrapped session for this request
        See Also:
        WrappedSession, HttpServletRequest.getSession(boolean), PortletRequest#getPortletSession(boolean)
      • getHttpServletRequest

        public javax.servlet.http.HttpServletRequest getHttpServletRequest()
        Gets the original, unwrapped HTTP servlet request.
        Returns:
        the servlet request