public class ProxyCacheResponse extends CauchoResponseWrapper
SC_ACCEPTED, SC_BAD_GATEWAY, SC_BAD_REQUEST, SC_CONFLICT, SC_CONTINUE, SC_CREATED, SC_EXPECTATION_FAILED, SC_FORBIDDEN, SC_FOUND, SC_GATEWAY_TIMEOUT, SC_GONE, SC_HTTP_VERSION_NOT_SUPPORTED, SC_INTERNAL_SERVER_ERROR, SC_LENGTH_REQUIRED, SC_METHOD_NOT_ALLOWED, SC_MOVED_PERMANENTLY, SC_MOVED_TEMPORARILY, SC_MULTIPLE_CHOICES, SC_NO_CONTENT, SC_NON_AUTHORITATIVE_INFORMATION, SC_NOT_ACCEPTABLE, SC_NOT_FOUND, SC_NOT_IMPLEMENTED, SC_NOT_MODIFIED, SC_OK, SC_PARTIAL_CONTENT, SC_PAYMENT_REQUIRED, SC_PRECONDITION_FAILED, SC_PROXY_AUTHENTICATION_REQUIRED, SC_REQUEST_ENTITY_TOO_LARGE, SC_REQUEST_TIMEOUT, SC_REQUEST_URI_TOO_LONG, SC_REQUESTED_RANGE_NOT_SATISFIABLE, SC_RESET_CONTENT, SC_SEE_OTHER, SC_SERVICE_UNAVAILABLE, SC_SWITCHING_PROTOCOLS, SC_TEMPORARY_REDIRECT, SC_UNAUTHORIZED, SC_UNSUPPORTED_MEDIA_TYPE, SC_USE_PROXY| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flushBuffer()
Flushes the buffer to the client.
|
ServletOutputStream |
getOutputStream()
Returns an output stream for writing to the client.
|
java.io.PrintWriter |
getWriter()
Returns a PrintWriter with the proper character encoding for writing
text data to the client.
|
void |
sendError(int code)
Sends an HTTP error page based on the status code
|
void |
sendError(int code,
java.lang.String message)
Sends an HTTP error page based on the status code
|
void |
setStatus(int code)
Sets the HTTP status
|
void |
setStatus(int code,
java.lang.String message) |
void |
writeHeaders(int length) |
addCookie, addDateHeader, addFooter, addHeader, addIntHeader, completeCache, containsHeader, encodeRedirectUrl, encodeRedirectURL, encodeUrl, encodeURL, getAbstractHttpResponse, getBufferSize, getCauchoResponse, getCharacterEncoding, getCharacterEncodingAssigned, getContentType, getForbidForward, getHeader, getHeaderNames, getHeaders, getLocale, getRequest, getResponse, getResponseStream, getStatus, getStatusMessage, hasError, isCaching, isCauchoResponseStream, isCommitted, isForwardEnclosed, isNoCacheUnlessVary, killCache, reset, resetBuffer, sendInternalError, sendRedirect, setBufferSize, setCacheInvocation, setCharacterEncoding, setContentLength, setContentLength, setContentType, setDateHeader, setFooter, setForbidForward, setForwardEnclosed, setHasError, setHeader, setIntHeader, setLocale, setMatchCacheEntry, setNoCache, setPrivateCache, setResponse, setResponseStream, setSessionId, toStringpublic void setStatus(int code)
HttpServletResponsesetStatus in interface HttpServletResponsesetStatus in class CauchoResponseWrappercode - the HTTP status codepublic void setStatus(int code,
java.lang.String message)
setStatus in interface HttpServletResponsesetStatus in class CauchoResponseWrapperpublic void sendError(int code)
throws java.io.IOException
HttpServletResponsesendError in interface HttpServletResponsesendError in class CauchoResponseWrappercode - the HTTP status codejava.io.IOExceptionpublic void sendError(int code,
java.lang.String message)
throws java.io.IOException
HttpServletResponsesendError in interface HttpServletResponsesendError in class CauchoResponseWrappercode - the HTTP status codejava.io.IOExceptionpublic java.io.PrintWriter getWriter()
throws java.io.IOException
ServletResponsegetWriter in interface ServletResponsegetWriter in class CauchoResponseWrapperjava.io.IOExceptionpublic ServletOutputStream getOutputStream() throws java.io.IOException
ServletResponsegetOutputStream in interface ServletResponsegetOutputStream in class CauchoResponseWrapperjava.io.IOExceptionpublic void flushBuffer()
throws java.io.IOException
ServletResponseflushBuffer in interface ServletResponseflushBuffer in class CauchoResponseWrapperjava.io.IOExceptionpublic void writeHeaders(int length)
throws java.io.IOException
writeHeaders in interface CauchoResponsewriteHeaders in class CauchoResponseWrapperjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface CauchoResponseclose in class CauchoResponseWrapperjava.io.IOException