jakarta.servlet.http.HttpServletRequest
| Access | Constructor and Description |
|---|---|
| public | HttpServletRequestWrapper(HttpServletRequest
The request to wrap request)Constructs a request object wrapping the given request. |
| Modifier and Type | Method and Description |
|---|---|
| private HttpServletRequest | |
| 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. The default behavior of this method is to call changeSessionId() on the wrapped request object. |
| public String | getAuthType()
Implements jakarta. The default behavior of this method is to return getAuthType() on the wrapped request object. |
| public String | getContextPath()
Implements jakarta. The default behavior of this method is to return getContextPath() on the wrapped request object. |
| public Cookie[] | getCookies()
Implements jakarta. The default behavior of this method is to return getCookies() on the wrapped request object. |
| public long | getDateHeader(String
a name)String specifying the name of the headerImplements jakarta. The default behavior of this method is to return getDateHeader(String name) on the wrapped request object. |
| public String | getHeader(String
a name)String specifying the header nameImplements jakarta. The default behavior of this method is to return getHeader(String name) on the wrapped request object. |
| public Enumeration | getHeaderNames()
Implements jakarta. The default behavior of this method is to return getHeaderNames() on the wrapped request object. |
| public Enumeration | getHeaders(String
a name)String specifying the header nameImplements jakarta. The default behavior of this method is to return getHeaders(String name) on the wrapped request object. |
| public HttpServletMapping | getHttpServletMapping()
Overrides default jakarta. The default behavior of this method is to return |
| public int | getIntHeader(String
a name)String specifying the name of a request headerImplements jakarta. The default behavior of this method is to return getIntHeader(String name) on the wrapped request object. |
| public String | getMethod()
Implements jakarta. The default behavior of this method is to return getMethod() on the wrapped request object. |
| 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. The default behavior of this method is to return getPathInfo() on the wrapped request object. |
| public String | getPathTranslated()
Implements jakarta. The default behavior of this method is to return getPathTranslated() on the wrapped request object. |
| public String | getQueryString()
Implements jakarta. The default behavior of this method is to return getQueryString() on the wrapped request object. |
| public String | getRemoteUser()
Implements jakarta. The default behavior of this method is to return getRemoteUser() on the wrapped request object. |
| public String | getRequestedSessionId()
Implements jakarta. The default behavior of this method is to return getRequestedSessionId() on the wrapped request object. |
| public String | getRequestURI()
Implements jakarta. The default behavior of this method is to return getRequestURI() on the wrapped request object. |
| public StringBuffer | getRequestURL()
Implements jakarta. The default behavior of this method is to return getRequestURL() on the wrapped request object. |
| public String | getServletPath()
Implements jakarta. The default behavior of this method is to return getServletPath() on the wrapped request object. |
| 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. The default behavior of this method is to return getSession(boolean create) on the wrapped request object. |
| public HttpSession | getSession()
Implements jakarta. The default behavior of this method is to return getSession() on the wrapped request object. |
| 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. The default behavior of this method is to return getUserPrincipal() on the wrapped request object. |
| public boolean | isRequestedSessionIdFromCookie()
Implements jakarta. The default behavior of this method is to return isRequestedSessionIdFromCookie() on the wrapped request object. |
| public boolean | isRequestedSessionIdFromURL()
Implements jakarta. The default behavior of this method is to return isRequestedSessionIdFromURL() on the wrapped request object. |
| public boolean | isRequestedSessionIdValid()
Implements jakarta. The default behavior of this method is to return isRequestedSessionIdValid() on the wrapped request object. |
| 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. The default behavior of this method is to return isUserInRole(String role) on the wrapped request object. |
| 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 <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. |
| HttpServletRequestWrapper | back to summary |
|---|---|
| public HttpServletRequestWrapper(HttpServletRequest request) Constructs a request object wrapping the given request.
| |
| _getHttpServletRequest | back to summary |
|---|---|
| private HttpServletRequest _getHttpServletRequest() | |
| authenticate | back to summary |
|---|---|
| public boolean authenticate(HttpServletResponse response) throws IOException, ServletException Implements jakarta. Doc from jakarta. Triggers the same authentication process as would be triggered if the request is for a resource that is protected by a security constraint.
The default behavior of this method is to return
| |
| changeSessionId | back to summary |
|---|---|
| public String changeSessionId() Implements jakarta. The default behavior of this method is to call changeSessionId() on the wrapped request object.
| |
| getAuthType | back to summary |
|---|---|
| public String getAuthType() Implements jakarta. The default behavior of this method is to return getAuthType() on the wrapped request object.
| |
| getContextPath | back to summary |
|---|---|
| public String getContextPath() Implements jakarta. The default behavior of this method is to return getContextPath() on the wrapped request object.
| |
| getCookies | back to summary |
|---|---|
| public Cookie[] getCookies() Implements jakarta. The default behavior of this method is to return getCookies() on the wrapped request object.
| |
| getDateHeader | back to summary |
|---|---|
| public long getDateHeader(String name) Implements jakarta. The default behavior of this method is to return getDateHeader(String name) on the wrapped request object.
| |
| getHeader | back to summary |
|---|---|
| public String getHeader(String name) Implements jakarta. The default behavior of this method is to return getHeader(String name) on the wrapped request object.
| |
| getHeaderNames | back to summary |
|---|---|
| public Enumeration Implements jakarta. The default behavior of this method is to return getHeaderNames() on the wrapped request object.
| |
| getHeaders | back to summary |
|---|---|
| public Enumeration Implements jakarta. The default behavior of this method is to return getHeaders(String name) on the wrapped request object.
| |
| getHttpServletMapping | back to summary |
|---|---|
| public HttpServletMapping getHttpServletMapping() Overrides default jakarta. The default behavior of this method is to return
| |
| getIntHeader | back to summary |
|---|---|
| public int getIntHeader(String name) Implements jakarta. The default behavior of this method is to return getIntHeader(String name) on the wrapped request object.
| |
| getMethod | back to summary |
|---|---|
| public String getMethod() Implements jakarta. The default behavior of this method is to return getMethod() on the wrapped request object.
| |
| getPart | back to summary |
|---|---|
| public Part getPart(String name) throws IOException, ServletException Implements jakarta. Doc from jakarta. Gets the named Part or null if the Part does not exist. Triggers upload of all Parts.
The default behavior of this method is to return
| |
| getParts | back to summary |
|---|---|
| public Collection Implements jakarta. Doc from jakarta. Return a collection of all uploaded Parts.
The default behavior of this method is to return
| |
| getPathInfo | back to summary |
|---|---|
| public String getPathInfo() Implements jakarta. The default behavior of this method is to return getPathInfo() on the wrapped request object.
| |
| getPathTranslated | back to summary |
|---|---|
| public String getPathTranslated() Implements jakarta. The default behavior of this method is to return getPathTranslated() on the wrapped request object.
| |
| getQueryString | back to summary |
|---|---|
| public String getQueryString() Implements jakarta. The default behavior of this method is to return getQueryString() on the wrapped request object.
| |
| getRemoteUser | back to summary |
|---|---|
| public String getRemoteUser() Implements jakarta. The default behavior of this method is to return getRemoteUser() on the wrapped request object.
| |
| getRequestedSessionId | back to summary |
|---|---|
| public String getRequestedSessionId() Implements jakarta. The default behavior of this method is to return getRequestedSessionId() on the wrapped request object.
| |
| getRequestURI | back to summary |
|---|---|
| public String getRequestURI() Implements jakarta. The default behavior of this method is to return getRequestURI() on the wrapped request object.
| |
| getRequestURL | back to summary |
|---|---|
| public StringBuffer getRequestURL() Implements jakarta. The default behavior of this method is to return getRequestURL() on the wrapped request object.
| |
| getServletPath | back to summary |
|---|---|
| public String getServletPath() Implements jakarta. The default behavior of this method is to return getServletPath() on the wrapped request object.
| |
| getSession | back to summary |
|---|---|
| public HttpSession getSession(boolean create) Implements jakarta. The default behavior of this method is to return getSession(boolean create) on the wrapped request object.
| |
| getSession | back to summary |
|---|---|
| public HttpSession getSession() Implements jakarta. The default behavior of this method is to return getSession() on the wrapped request object.
| |
| getTrailerFields | back to summary |
|---|---|
| public Map Overrides default jakarta. Doc from jakarta. Obtain a Map of the trailer fields that is not backed by the request object.
The default behavior of this method is to return | |
| getUserPrincipal | back to summary |
|---|---|
| public Principal getUserPrincipal() Implements jakarta. The default behavior of this method is to return getUserPrincipal() on the wrapped request object.
| |
| isRequestedSessionIdFromCookie | back to summary |
|---|---|
| public boolean isRequestedSessionIdFromCookie() Implements jakarta. The default behavior of this method is to return isRequestedSessionIdFromCookie() on the wrapped request object.
| |
| isRequestedSessionIdFromURL | back to summary |
|---|---|
| public boolean isRequestedSessionIdFromURL() Implements jakarta. The default behavior of this method is to return isRequestedSessionIdFromURL() on the wrapped request object.
| |
| isRequestedSessionIdValid | back to summary |
|---|---|
| public boolean isRequestedSessionIdValid() Implements jakarta. The default behavior of this method is to return isRequestedSessionIdValid() on the wrapped request object.
| |
| isTrailerFieldsReady | back to summary |
|---|---|
| public boolean isTrailerFieldsReady() Overrides default jakarta. Doc from jakarta. Are trailer fields ready to be read (there may still be no trailers to read). This method always returns
The default behavior of this method is to return
| |
| isUserInRole | back to summary |
|---|---|
| public boolean isUserInRole(String role) Implements jakarta. The default behavior of this method is to return isUserInRole(String role) on the wrapped request object.
| |
| login | back to summary |
|---|---|
| public void login(String username, String password) throws ServletException Implements jakarta. Doc from jakarta. Authenticate the provided user name and password and then associated the authenticated user with the request.
The default behavior of this method is to return
| |
| logout | back to summary |
|---|---|
| public void logout() throws ServletException Implements jakarta. Doc from jakarta. Removes any authenticated user from the request.
The default behavior of this method is to return
| |
| newPushBuilder | back to summary |
|---|---|
| public PushBuilder newPushBuilder() Overrides default jakarta. Doc from jakarta. Obtain a builder for generating push requests.
The default behavior of this method is to return
| |
| upgrade | back to summary |
|---|---|
| public <T extends HttpUpgradeHandler> T upgrade(Class<T> httpUpgradeHandlerClass) throws IOException, ServletException Implements jakarta. Doc from jakarta. Start the HTTP upgrade process and create and instance of the provided protocol handler class. The connection
will be passed this instance once the current request/response pair has completed processing. Calling this method
sets the response status to
The default behavior of this method is to return
| |