com.caucho.server.http
Class ToCharResponseAdapter

java.lang.Object
  extended by com.caucho.server.http.ResponseWrapper
      extended by com.caucho.server.http.ResponseAdapter
          extended by com.caucho.server.http.ToCharResponseAdapter
All Implemented Interfaces:
CauchoResponse, HttpServletResponse, ServletResponse

public class ToCharResponseAdapter
extends ResponseAdapter


Field Summary
 
Fields inherited from class com.caucho.server.http.ResponseWrapper
_response
 
Fields inherited from interface javax.servlet.http.HttpServletResponse
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
 
Method Summary
static ToCharResponseAdapter create(HttpServletResponse response)
          Creates a new ResponseAdapter.
protected  AbstractResponseStream createWrapperResponseStream()
           
static void free(ToCharResponseAdapter resAdapt)
           
 void init(HttpServletResponse response)
           
 void resetBuffer()
          Resets the output stream without clearing headers and the output buffer.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.server.http.ResponseAdapter
addCookie, addFooter, close, completeCache, disableHeaders, finish, free, free, getBufferSize, getCauchoResponse, getFlushBuffer, getForbidForward, getHeader, getHeaderNames, getHeaders, getOutputStream, getRemaining, getResponseStream, getStatus, getStatusMessage, getWriter, hasError, isCauchoResponseStream, isForwardEnclosed, isNoCacheUnlessVary, isTop, killCache, sendRedirect, setBufferSize, setContentType, setFlushBuffer, setFooter, setForbidForward, setForwardEnclosed, setHasError, setNoCache, setPrivateCache, setResponseStream, setSessionId, writeHeaders
 
Methods inherited from class com.caucho.server.http.ResponseWrapper
addDateHeader, addHeader, addIntHeader, containsHeader, disable, enable, encodeRedirectUrl, encodeRedirectURL, encodeUrl, encodeURL, flushBuffer, getAbstractHttpResponse, getCharacterEncoding, getContentType, getLocale, getResponse, isCommitted, isDisabled, reset, sendError, sendError, setCacheInvocation, setCharacterEncoding, setContentLength, setDateHeader, setHeader, setIntHeader, setLocale, setMatchCacheEntry, setResponse, setStatus, setStatus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.caucho.server.http.CauchoResponse
getAbstractHttpResponse, getResponse, setCacheInvocation
 
Methods inherited from interface javax.servlet.http.HttpServletResponse
addDateHeader, addHeader, addIntHeader, containsHeader, encodeRedirectUrl, encodeRedirectURL, encodeUrl, encodeURL, sendError, sendError, setDateHeader, setHeader, setIntHeader, setStatus, setStatus
 
Methods inherited from interface javax.servlet.ServletResponse
flushBuffer, getCharacterEncoding, getContentType, getLocale, isCommitted, reset, setCharacterEncoding, setContentLength, setLocale
 

Method Detail

create

public static ToCharResponseAdapter create(HttpServletResponse response)
Creates a new ResponseAdapter.


createWrapperResponseStream

protected AbstractResponseStream createWrapperResponseStream()
Overrides:
createWrapperResponseStream in class ResponseAdapter

init

public void init(HttpServletResponse response)
Overrides:
init in class ResponseAdapter

resetBuffer

public void resetBuffer()
Description copied from class: ResponseWrapper
Resets the output stream without clearing headers and the output buffer. Calling resetBuffer() after data has been committed is illegal.

Specified by:
resetBuffer in interface ServletResponse
Overrides:
resetBuffer in class ResponseAdapter

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

free

public static void free(ToCharResponseAdapter resAdapt)