| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class | |
| private class | |
| private class | |
| private class | |
| private class | |
| private class | |
| private class | |
| private class | |
| private class | |
| private class | |
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| protected Request | request
The wrapped request. |
| private static final StringManager |
| Access | Constructor and Description |
|---|---|
| public | RequestFacade(Request
The request to be wrapped request)Construct a wrapper for the specified request. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | authenticate(HttpServletResponse
The response to use to return any authentication challenge response)Implements jakarta. Triggers the same authentication process as would be triggered if the request is for a resource that is protected by a security constraint. |
| public String | changeSessionId()
Implements jakarta. Changes the session ID of the session associated with this request. |
| private void | |
| public void | |
| protected Object | |
| public boolean | |
| public AsyncContext | getAsyncContext()
Implements jakarta. Get the current AsyncContext. |
| public Object | getAttribute(String
a name)String specifying the name of the attributeImplements jakarta. Returns the value of the named attribute as an |
| public Enumeration | getAttributeNames()
Implements jakarta. Returns an |
| public String | getAuthType()
Implements jakarta. Returns the name of the authentication scheme used to protect the servlet. |
| public String | getCharacterEncoding()
Implements jakarta. Returns the name of the character encoding used in the body of this request. |
| public int | getContentLength()
Implements jakarta. Returns the length, in bytes, of the request body and made available by the input stream, or -1 if the length is not known. |
| public long | getContentLengthLong()
Implements jakarta. Returns the length, in bytes, of the request body and made available by the input stream, or -1 if the length is not known. |
| public String | getContentType()
Implements jakarta. Returns the MIME type of the body of the request, or |
| public String | getContextPath()
Implements jakarta. Returns the portion of the request URI that indicates the context of the request. |
| public Cookie[] | getCookies()
Implements jakarta. Returns an array containing all of the |
| public long | getDateHeader(String
a name)String specifying the name of the headerImplements jakarta. Returns the value of the specified request header as a |
| public DispatcherType | |
| public String | getHeader(String
a name)String specifying the header nameImplements jakarta. Returns the value of the specified request header as a |
| public Enumeration | getHeaderNames()
Implements jakarta. Returns an enumeration of all the header names this request contains. |
| public Enumeration | getHeaders(String
a name)String specifying the header nameImplements jakarta. Returns all the values of the specified request header as an |
| public HttpServletMapping | getHttpServletMapping()
Overrides default jakarta. Obtain the mapping information for this request. |
| public ServletInputStream | getInputStream()
Implements jakarta. Retrieves the body of the request as binary data using a |
| public int | getIntHeader(String
a name)String specifying the name of a request headerImplements jakarta. Returns the value of the specified request header as an |
| public String | getLocalAddr()
Implements jakarta. Returns the Internet Protocol (IP) address of the interface on which the request was received. |
| public Locale | getLocale()
Implements jakarta. Returns the preferred |
| public Enumeration | getLocales()
Implements jakarta. Returns an |
| public String | getLocalName()
Implements jakarta. Returns the host name of the Internet Protocol (IP) interface on which the request was received. |
| public int | getLocalPort()
Implements jakarta. Returns the Internet Protocol (IP) port number of the interface on which the request was received. |
| public String | getMethod()
Implements jakarta. Returns the name of the HTTP method with which this request was made, for example, GET, POST, or PUT. |
| public String | getParameter(String
a name)String specifying the name of the parameterImplements jakarta. Returns the value of a request parameter as a |
| public Map | getParameterMap()
Implements jakarta. Returns a java.util.Map of the parameters of this request. |
| public Enumeration | getParameterNames()
Implements jakarta. Returns an |
| public String[] | getParameterValues(String
a name)String containing the name of the parameter whose value is requestedImplements jakarta. Returns an array of |
| public Part | getPart(String
The name of the Part to obtain name)Implements jakarta. Gets the named Part or null if the Part does not exist. |
| public Collection | getParts()
Implements jakarta. Return a collection of all uploaded Parts. |
| public String | getPathInfo()
Implements jakarta. Returns any extra path information associated with the URL the client sent when it made this request. |
| public String | getPathTranslated()
Implements jakarta. Returns any extra path information after the servlet name but before the query string, and translates it to a real path. |
| public String | getProtocol()
Implements jakarta. Returns the name and version of the protocol the request uses in the form protocol/majorVersion.minorVersion, for example, HTTP/1.1. |
| public String | getProtocolRequestId()
Implements jakarta. Obtain the request identifier for this request as defined by the protocol in use. |
| public String | getQueryString()
Implements jakarta. Returns the query string that is contained in the request URL after the path. |
| public BufferedReader | getReader()
Implements jakarta. Retrieves the body of the request as character data using a |
| public String | getRemoteAddr()
Implements jakarta. Returns the Internet Protocol (IP) address of the client or last proxy that sent the request. |
| public String | getRemoteHost()
Implements jakarta. Returns the fully qualified name of the client or the last proxy that sent the request. |
| public int | getRemotePort()
Implements jakarta. Returns the Internet Protocol (IP) source port of the client or last proxy that sent the request. |
| public String | getRemoteUser()
Implements jakarta. Returns the login of the user making this request, if the user has been authenticated, or |
| public RequestDispatcher | getRequestDispatcher(String
a path)String specifying the pathname to the resource. If it is relative, it must be relative
against the current servlet.Implements jakarta. Returns a |
| public String | getRequestedSessionId()
Implements jakarta. Returns the session ID specified by the client. |
| public String | getRequestId()
Implements jakarta. Obtain a unique (within the lifetime of the Servlet container) identifier string for this request. |
| public String | getRequestURI()
Implements jakarta. Returns the part of this request's URL from the protocol name up to the query string in the first line of the HTTP request. |
| public StringBuffer | getRequestURL()
Implements jakarta. Reconstructs the URL the client used to make the request. |
| public String | getScheme()
Implements jakarta. Returns the name of the scheme used to make this request, for example, |
| public String | getServerName()
Implements jakarta. Returns the host name of the server to which the request was sent. |
| public int | getServerPort()
Implements jakarta. Returns the port number to which the request was sent. |
| public ServletConnection | getServletConnection()
Implements jakarta. Obtain details of the network connection to the Servlet container that is being used by this request. |
| public ServletContext | |
| public String | getServletPath()
Implements jakarta. Returns the part of this request's URL that calls the servlet. |
| public HttpSession | getSession(boolean
true to create a new session for this request if necessary; false to
return null if there's no current sessionImplements jakarta. Returns the current |
| public HttpSession | getSession()
Implements jakarta. Returns the current session associated with this request, or if the request does not have a session, creates one. |
| public Map | getTrailerFields()
Overrides default jakarta. Obtain a Map of the trailer fields that is not backed by the request object. |
| public Principal | getUserPrincipal()
Implements jakarta. Returns a |
| public boolean | |
| public boolean | |
| public boolean | isRequestedSessionIdFromCookie()
Implements jakarta. Checks whether the requested session ID came in as a cookie. |
| public boolean | isRequestedSessionIdFromURL()
Implements jakarta. Checks whether the requested session ID came in as part of the request URL. |
| public boolean | isRequestedSessionIdValid()
Implements jakarta. Checks whether the requested session ID is still valid. |
| public boolean | isSecure()
Implements jakarta. Returns a boolean indicating whether this request was made using a secure channel, such as HTTPS. |
| public boolean | isTrailerFieldsReady()
Overrides default jakarta. Are trailer fields ready to be read (there may still be no trailers to read). |
| public boolean | isUserInRole(String
a role)String specifying the name of the roleImplements jakarta. Returns a boolean indicating whether the authenticated user is included in the specified logical "role". |
| public void | login(String
The user name to authenticate username, String The password to use to authenticate the user password)Implements jakarta. Authenticate the provided user name and password and then associated the authenticated user with the request. |
| public void | logout()
Implements jakarta. Removes any authenticated user from the request. |
| public PushBuilder | newPushBuilder()
Overrides default jakarta. Obtain a builder for generating push requests. |
| public PushBuilder | |
| public void | removeAttribute(String
a name)String specifying the name of the attribute to removeImplements jakarta. Removes an attribute from this request. |
| public void | setAttribute(String
a name, Object String specifying the name of the attributethe o)Object to be storedImplements jakarta. Stores an attribute in this request. |
| public void | setCharacterEncoding(String
a env)String containing the name of the character encodingImplements jakarta. Overrides the name of the character encoding used in the body of this request. |
| public AsyncContext | |
| public AsyncContext | startAsync(ServletRequest
The ServletRequest with which to initialise the asynchronous context request, ServletResponse The ServletResponse with which to initialise the asynchronous context response)Implements jakarta.
|
| public <T extends HttpUpgradeHandler> T | upgrade(Class<T>
The class that implements the upgrade handler httpUpgradeHandlerClass)Implements jakarta. Start the HTTP upgrade process and create and instance of the provided protocol handler class. |