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, toString
public void setStatus(int code)
HttpServletResponse
setStatus
in interface HttpServletResponse
setStatus
in class CauchoResponseWrapper
code
- the HTTP status codepublic void setStatus(int code, java.lang.String message)
setStatus
in interface HttpServletResponse
setStatus
in class CauchoResponseWrapper
public void sendError(int code) throws java.io.IOException
HttpServletResponse
sendError
in interface HttpServletResponse
sendError
in class CauchoResponseWrapper
code
- the HTTP status codejava.io.IOException
public void sendError(int code, java.lang.String message) throws java.io.IOException
HttpServletResponse
sendError
in interface HttpServletResponse
sendError
in class CauchoResponseWrapper
code
- the HTTP status codejava.io.IOException
public java.io.PrintWriter getWriter() throws java.io.IOException
ServletResponse
getWriter
in interface ServletResponse
getWriter
in class CauchoResponseWrapper
java.io.IOException
public ServletOutputStream getOutputStream() throws java.io.IOException
ServletResponse
getOutputStream
in interface ServletResponse
getOutputStream
in class CauchoResponseWrapper
java.io.IOException
public void flushBuffer() throws java.io.IOException
ServletResponse
flushBuffer
in interface ServletResponse
flushBuffer
in class CauchoResponseWrapper
java.io.IOException
public void writeHeaders(int length) throws java.io.IOException
writeHeaders
in interface CauchoResponse
writeHeaders
in class CauchoResponseWrapper
java.io.IOException
public void close() throws java.io.IOException
close
in interface CauchoResponse
close
in class CauchoResponseWrapper
java.io.IOException