Interface HttpServletRequest

    • Method Detail

      • changeSessionId

        String changeSessionId()
        Change the session id.
        Returns:
        the new session id.
      • getAuthType

        String getAuthType()
        Get the auth type.
        Returns:
        the auth type.
      • getContextPath

        String getContextPath()
        Get the context path.
        Returns:
        the context path.
      • getCookies

        Cookie[] getCookies()
        Get the cookies.
        Returns:
        the cookies, or null if none.
      • getDateHeader

        long getDateHeader​(String name)
        Get the date header.
        Parameters:
        name - the name.
        Returns:
        the date, or -1 if not found.
      • getHeader

        String getHeader​(String name)
        Get the header.
        Parameters:
        name - the name.
        Returns:
        the header, or null if not found.
      • getHeaders

        Enumeration<String> getHeaders​(String name)
        Get the headers.
        Parameters:
        name - the name.
        Returns:
        the headers.
      • getHeaderNames

        Enumeration<String> getHeaderNames()
        Get the header names.
        Returns:
        the header names.
      • getHttpServletMapping

        default HttpServletMapping getHttpServletMapping()
        Get the HTTP servlet mapping.
        Returns:
        the HTTP servlet mapping.
      • getIntHeader

        int getIntHeader​(String name)
        Get the int header.
        Parameters:
        name - the name.
        Returns:
        the header, or -1 if not found.
      • getMethod

        String getMethod()
        Get the HTTP method.
        Returns:
        the HTTP method.
      • getPathInfo

        String getPathInfo()
        Get the path info.
        Returns:
        the path info.
      • getPathTranslated

        String getPathTranslated()
        Get the path translated.
        Returns:
        the path translated.
      • getQueryString

        String getQueryString()
        Get the query string.
        Returns:
        the query string, or null if not found.
      • getRemoteUser

        String getRemoteUser()
        Get the remote user.
        Returns:
        the remote user, or null if not found.
      • getRequestURI

        String getRequestURI()
        Get the request URI.
        Returns:
        the request URI.
      • getRequestURL

        StringBuffer getRequestURL()
        Get the request URL.
        Returns:
        the request URL.
      • getRequestedSessionId

        String getRequestedSessionId()
        Get the requested session id.
        Returns:
        the requested session id.
      • getServletPath

        String getServletPath()
        Get the servlet path.
        Returns:
        the servlet path.
      • getSession

        HttpSession getSession​(boolean create)
        Get the HTTP session.
        Parameters:
        create - the create flag.
        Returns:
        the HTTP session, or null if not found and create flag is false.
      • getSession

        HttpSession getSession()
        Get the HTTP session.
        Returns:
        the HTTP session.
      • getTrailerFields

        default Map<String,​String> getTrailerFields()
        Get the trailer fields.
        Returns:
        the trailer fields.
      • getUserPrincipal

        Principal getUserPrincipal()
        Get the user principal.
        Returns:
        the user principal.
      • isRequestedSessionIdFromCookie

        boolean isRequestedSessionIdFromCookie()
        Is the requested session id from a cookie.
        Returns:
        true if it is, false otherwise.
      • isRequestedSessionIdFromURL

        boolean isRequestedSessionIdFromURL()
        Is the requested session id from a URL.
        Returns:
        true if it is, false otherwise.
      • isRequestedSessionIdFromUrl

        @Deprecated
        boolean isRequestedSessionIdFromUrl()
        Deprecated.
        Is the requested session id from a URL.
        Returns:
        true if it is, false otherwise.
      • isRequestedSessionIdValid

        boolean isRequestedSessionIdValid()
        Is the requested session id valid.
        Returns:
        true if it is, false otherwise.
      • isTrailerFieldsReady

        default boolean isTrailerFieldsReady()
        Is trailer fields ready.
        Returns:
        true if fields are ready, false otherwise.
      • isUserInRole

        boolean isUserInRole​(String role)
        Is the user in the specified role.
        Parameters:
        role - the role.
        Returns:
        true if the user is in the specified role, false otherwise.
      • newPushBuilder

        default PushBuilder newPushBuilder()
        Create a new push builder.
        Returns:
        the push builder.