jakarta.servlet.ServletResponse that transforms an application response object (which
might be the original one passed to a servlet, or might be based on the 2.3
jakarta.servlet.ServletResponseWrapper class) back into an internal
org.apache.catalina.Response.Warning
Due to Java's lack of support for multiple inheritance, all of the logic in
ApplicationResponse is duplicated in ApplicationHttpResponse. Make sure that you keep these
two classes in synchronization when making changes!
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | included
Is this wrapped response the subject of an |
| Access | Constructor and Description |
|---|---|
| pack-priv | ApplicationResponse(ServletResponse
The servlet response being wrapped response, boolean true if this response is being processed by a
RequestDispatcher.include() callConstruct a new wrapped response around the specified servlet response. |
| Modifier and Type | Method and Description |
|---|---|
| public void | reset()
Overrides jakarta. Implements jakarta. Disallow |
| public void | setBufferSize(int
The buffer size size)Overrides jakarta. Implements jakarta. Ignore |
| public void | setContentLength(int
The new content length len)Overrides jakarta. Implements jakarta. Disallow |
| public void | setContentLengthLong(long
The new content length len)Overrides jakarta. Implements jakarta. Disallow |
| public void | setContentType(String
The new content type type)Overrides jakarta. Implements jakarta. Disallow |
| pack-priv void | |
| public void | setLocale(Locale
The new locale loc)Overrides jakarta. Implements jakarta. Ignore |
| public void | setResponse(ServletResponse
The new wrapped response response)Overrides jakarta. Set the response that we are wrapping. |
| included | back to summary |
|---|---|
| protected boolean included Is this wrapped response the subject of an | |
| ApplicationResponse | back to summary |
|---|---|
| pack-priv ApplicationResponse(ServletResponse response, boolean included) Construct a new wrapped response around the specified servlet response.
| |
| reset | back to summary |
|---|---|
| public void reset() Overrides jakarta. Implements jakarta. Disallow
| |
| setBufferSize | back to summary |
|---|---|
| public void setBufferSize(int size) Overrides jakarta. Implements jakarta. Ignore
| |
| setContentLength | back to summary |
|---|---|
| public void setContentLength(int len) Overrides jakarta. Implements jakarta. Disallow
| |
| setContentLengthLong | back to summary |
|---|---|
| public void setContentLengthLong(long len) Overrides jakarta. Implements jakarta. Disallow
| |
| setContentType | back to summary |
|---|---|
| public void setContentType(String type) Overrides jakarta. Implements jakarta. Disallow | |
| setIncluded | back to summary |
|---|---|
| pack-priv void setIncluded(boolean included) Set the included flag for this response.
| |
| setLocale | back to summary |
|---|---|
| public void setLocale(Locale loc) Overrides jakarta. Implements jakarta. Ignore | |
| setResponse | back to summary |
|---|---|
| public void setResponse(ServletResponse response) Overrides jakarta. Set the response that we are wrapping.
| |