public class ApplicationResponse
extends javax.servlet.ServletResponseWrapper
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
included
Is this wrapped response the subject of an
include()
call? |
| Constructor and Description |
|---|
ApplicationResponse(javax.servlet.ServletResponse response)
Construct a new wrapped response around the specified servlet response.
|
ApplicationResponse(javax.servlet.ServletResponse response,
boolean included)
Construct a new wrapped response around the specified servlet response.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isIncluded()
Return the included flag for this response.
|
void |
reset()
Disallow
reset() calls on a included response. |
void |
setBufferSize(int size)
Ignore
setBufferSize() calls on an included response. |
void |
setContentLength(int len)
Disallow
setContentLength() calls on an included response. |
void |
setContentType(String type)
Disallow
setContentType() calls on an included response. |
void |
setLocale(Locale loc)
Ignore
setLocale() calls on an included response. |
void |
setResponse(javax.servlet.ServletResponse response)
Set the response that we are wrapping.
|
protected boolean included
include()
call?public ApplicationResponse(javax.servlet.ServletResponse response)
response - The servlet response being wrappedpublic ApplicationResponse(javax.servlet.ServletResponse response,
boolean included)
response - The servlet response being wrappedincluded - true if this response is being processed
by a RequestDispatcher.include() callpublic void reset()
reset() calls on a included response.reset in class javax.servlet.ServletResponseWrapperIllegalStateException - if the response has already
been committedpublic void setContentLength(int len)
setContentLength() calls on an included response.setContentLength in interface javax.servlet.ServletResponsesetContentLength in class javax.servlet.ServletResponseWrapperlen - The new content lengthpublic void setContentType(String type)
setContentType() calls on an included response.setContentType in interface javax.servlet.ServletResponsesetContentType in class javax.servlet.ServletResponseWrappertype - The new content typepublic void setLocale(Locale loc)
setLocale() calls on an included response.setLocale in class javax.servlet.ServletResponseWrapperloc - The new localepublic void setBufferSize(int size)
setBufferSize() calls on an included response.setBufferSize in class javax.servlet.ServletResponseWrappersize - The buffer sizepublic void setResponse(javax.servlet.ServletResponse response)
setResponse in class javax.servlet.ServletResponseWrapperresponse - The new wrapped responsepublic boolean isIncluded()
Copyright © 2017. All rights reserved.