jakarta.servlet.ServletRequest that transforms an application request object (which
might be the original one passed to a servlet, or might be based on the 2.3
jakarta.servlet.ServletRequestWrapper class) back into an internal
org.apache.catalina.Request.Warning
Due to Java's lack of support for multiple inheritance, all of the logic in
ApplicationRequest is duplicated in ApplicationHttpRequest. Make sure that you keep these
two classes in synchronization when making changes!
| Modifier and Type | Field and Description |
|---|---|
| protected final HashMap | attributes
The request attributes for this request. |
| private static final int | |
| protected static final String[] | specials
Deprecated
Will be removed without replacement in Tomcat 11 onwards.
The set of attribute names that are special for request dispatchers.
|
| private static final Set |
| Access | Constructor and Description |
|---|---|
| pack-priv | ApplicationRequest(ServletRequest
The servlet request being wrapped request)Construct a new wrapped request around the specified servlet request. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | getAttribute(String
Name of the attribute to retrieve name)Overrides jakarta. Implements jakarta. Override the |
| public Enumeration | getAttributeNames()
Overrides jakarta. Implements jakarta. Override the |
| protected boolean | |
| public void | removeAttribute(String
Name of the attribute to remove name)Overrides jakarta. Implements jakarta. Override the |
| public void | setAttribute(String
Name of the attribute to set name, Object Value of the attribute to set value)Overrides jakarta. Implements jakarta. Override the |
| public void | setRequest(ServletRequest
The new wrapped request request)Overrides jakarta. Set the request that we are wrapping. |
| attributes | back to summary |
|---|---|
| protected final HashMap<String, Object> attributes The request attributes for this request. This is initialized from the wrapped request, but updates are allowed. | |
| shortestSpecialNameLength | back to summary |
|---|---|
| private static final int shortestSpecialNameLength | |
| specials | back to summary |
|---|---|
| protected static final String[] specials
Deprecated Will be removed without replacement in Tomcat 11 onwards. The set of attribute names that are special for request dispatchers. | |
| specialsSet | back to summary |
|---|---|
| private static final Set<String> specialsSet | |
| ApplicationRequest | back to summary |
|---|---|
| pack-priv ApplicationRequest(ServletRequest request) Construct a new wrapped request around the specified servlet request.
| |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(String name) Overrides jakarta. Implements jakarta. Override the
| |
| getAttributeNames | back to summary |
|---|---|
| public Enumeration Overrides jakarta. Implements jakarta. Override the
| |
| isSpecial | back to summary |
|---|---|
| protected boolean isSpecial(String name)
Deprecated Will be made private in Tomcat 11 onwards. Is this attribute name one of the special ones that is added only for included servlets?
| |
| removeAttribute | back to summary |
|---|---|
| public void removeAttribute(String name) Overrides jakarta. Implements jakarta. Override the | |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(String name, Object value) Overrides jakarta. Implements jakarta. Override the | |
| setRequest | back to summary |
|---|---|
| public void setRequest(ServletRequest request) Overrides jakarta. Set the request that we are wrapping.
| |