public class IncludeResponseWrapper extends jakarta.servlet.http.HttpServletResponseWrapper
Response wrapper used to capture the content of a response (such as within in an include).
Modifiers | Name | Description |
---|---|---|
private StreamByteBuffer |
byteBuffer |
|
private StreamCharBuffer |
charBuffer |
|
private boolean |
committed |
|
private java.lang.String |
contentType |
|
private java.io.OutputStream |
os |
|
private java.io.PrintWriter |
pw |
|
private java.lang.String |
redirectURL |
|
private jakarta.servlet.ServletOutputStream |
sos |
|
private int |
status |
|
private boolean |
usingStream |
|
private boolean |
usingWriter |
Fields inherited from class | Fields |
---|---|
class jakarta.servlet.http.HttpServletResponseWrapper |
SC_CONTINUE, SC_SWITCHING_PROTOCOLS, SC_OK, SC_CREATED, SC_ACCEPTED, SC_NON_AUTHORITATIVE_INFORMATION, SC_NO_CONTENT, SC_RESET_CONTENT, SC_PARTIAL_CONTENT, SC_MULTIPLE_CHOICES, SC_MOVED_PERMANENTLY, SC_MOVED_TEMPORARILY, SC_FOUND, SC_SEE_OTHER, SC_NOT_MODIFIED, SC_USE_PROXY, SC_TEMPORARY_REDIRECT, SC_BAD_REQUEST, SC_UNAUTHORIZED, SC_PAYMENT_REQUIRED, SC_FORBIDDEN, SC_NOT_FOUND, SC_METHOD_NOT_ALLOWED, SC_NOT_ACCEPTABLE, SC_PROXY_AUTHENTICATION_REQUIRED, SC_REQUEST_TIMEOUT, SC_CONFLICT, SC_GONE, SC_LENGTH_REQUIRED, SC_PRECONDITION_FAILED, SC_REQUEST_ENTITY_TOO_LARGE, SC_REQUEST_URI_TOO_LONG, SC_UNSUPPORTED_MEDIA_TYPE, SC_REQUESTED_RANGE_NOT_SATISFIABLE, SC_EXPECTATION_FAILED, SC_INTERNAL_SERVER_ERROR, SC_NOT_IMPLEMENTED, SC_BAD_GATEWAY, SC_SERVICE_UNAVAILABLE, SC_GATEWAY_TIMEOUT, SC_HTTP_VERSION_NOT_SUPPORTED |
Constructor and description |
---|
IncludeResponseWrapper(jakarta.servlet.http.HttpServletResponse httpServletResponse) |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
flushBuffer() |
|
public java.lang.Object |
getContent() |
|
public java.lang.Object |
getContent(java.lang.String encoding) |
|
public java.lang.String |
getContentType() |
|
public jakarta.servlet.ServletOutputStream |
getOutputStream() |
|
public java.lang.String |
getRedirectURL() |
|
public int |
getStatus() |
|
public java.io.PrintWriter |
getWriter() |
|
public boolean |
isCommitted() |
|
public boolean |
isReady() |
|
public void |
reset() |
|
public void |
resetBuffer() |
|
public void |
sendError(int i, java.lang.String s) |
|
public void |
sendError(int i) |
|
public void |
sendRedirect(java.lang.String s) |
|
public void |
setContentLength(int len) |
|
public void |
setContentType(java.lang.String s) |
|
public void |
setLocale(java.util.Locale locale) |
|
public void |
setStatus(int i) |
|
public void |
setWriteListener(jakarta.servlet.WriteListener writeListener) |
|
public void |
write(byte[] b, int off, int len) |
|
public void |
write(byte[] b) |
|
public void |
write(int b) |
Methods inherited from class | Name |
---|---|
class jakarta.servlet.http.HttpServletResponseWrapper |
jakarta.servlet.http.HttpServletResponseWrapper#containsHeader(java.lang.String), jakarta.servlet.http.HttpServletResponseWrapper#setHeader(java.lang.String, java.lang.String), jakarta.servlet.http.HttpServletResponseWrapper#addCookie(jakarta.servlet.http.Cookie), jakarta.servlet.http.HttpServletResponseWrapper#getHeaderNames(), jakarta.servlet.http.HttpServletResponseWrapper#getTrailerFields(), jakarta.servlet.http.HttpServletResponseWrapper#encodeURL(java.lang.String), jakarta.servlet.http.HttpServletResponseWrapper#encodeRedirectURL(java.lang.String), jakarta.servlet.http.HttpServletResponseWrapper#sendError(int, java.lang.String), jakarta.servlet.http.HttpServletResponseWrapper#sendError(int), jakarta.servlet.http.HttpServletResponseWrapper#sendRedirect(java.lang.String), jakarta.servlet.http.HttpServletResponseWrapper#setDateHeader(java.lang.String, long), jakarta.servlet.http.HttpServletResponseWrapper#addDateHeader(java.lang.String, long), jakarta.servlet.http.HttpServletResponseWrapper#setIntHeader(java.lang.String, int), jakarta.servlet.http.HttpServletResponseWrapper#addIntHeader(java.lang.String, int), jakarta.servlet.http.HttpServletResponseWrapper#setTrailerFields(java.util.function.Supplier), jakarta.servlet.http.HttpServletResponseWrapper#getHeader(java.lang.String), jakarta.servlet.http.HttpServletResponseWrapper#getStatus(), jakarta.servlet.http.HttpServletResponseWrapper#addHeader(java.lang.String, java.lang.String), jakarta.servlet.http.HttpServletResponseWrapper#setStatus(int), jakarta.servlet.http.HttpServletResponseWrapper#getHeaders(java.lang.String), jakarta.servlet.http.HttpServletResponseWrapper#isWrapperFor(java.lang.Class), jakarta.servlet.http.HttpServletResponseWrapper#isWrapperFor(jakarta.servlet.ServletResponse), jakarta.servlet.http.HttpServletResponseWrapper#getBufferSize(), jakarta.servlet.http.HttpServletResponseWrapper#setBufferSize(int), jakarta.servlet.http.HttpServletResponseWrapper#getCharacterEncoding(), jakarta.servlet.http.HttpServletResponseWrapper#setCharacterEncoding(java.lang.String), jakarta.servlet.http.HttpServletResponseWrapper#setContentLengthLong(long), jakarta.servlet.http.HttpServletResponseWrapper#resetBuffer(), jakarta.servlet.http.HttpServletResponseWrapper#isCommitted(), jakarta.servlet.http.HttpServletResponseWrapper#setResponse(jakarta.servlet.ServletResponse), jakarta.servlet.http.HttpServletResponseWrapper#getWriter(), jakarta.servlet.http.HttpServletResponseWrapper#reset(), jakarta.servlet.http.HttpServletResponseWrapper#flushBuffer(), jakarta.servlet.http.HttpServletResponseWrapper#getLocale(), jakarta.servlet.http.HttpServletResponseWrapper#setLocale(java.util.Locale), jakarta.servlet.http.HttpServletResponseWrapper#getResponse(), jakarta.servlet.http.HttpServletResponseWrapper#setContentType(java.lang.String), jakarta.servlet.http.HttpServletResponseWrapper#setContentLength(int), jakarta.servlet.http.HttpServletResponseWrapper#getContentType(), jakarta.servlet.http.HttpServletResponseWrapper#getOutputStream(), jakarta.servlet.http.HttpServletResponseWrapper#wait(long, int), jakarta.servlet.http.HttpServletResponseWrapper#wait(), jakarta.servlet.http.HttpServletResponseWrapper#wait(long), jakarta.servlet.http.HttpServletResponseWrapper#equals(java.lang.Object), jakarta.servlet.http.HttpServletResponseWrapper#toString(), jakarta.servlet.http.HttpServletResponseWrapper#hashCode(), jakarta.servlet.http.HttpServletResponseWrapper#getClass(), jakarta.servlet.http.HttpServletResponseWrapper#notify(), jakarta.servlet.http.HttpServletResponseWrapper#notifyAll() |