com.caucho.server.http
Class HttpResponse

java.lang.Object
  extended by com.caucho.server.http.AbstractHttpResponse
      extended by com.caucho.server.http.HttpResponse

public class HttpResponse
extends AbstractHttpResponse


Field Summary
 
Fields inherited from class com.caucho.server.http.AbstractHttpResponse
_calendar, _cb, _contentLength, _footerKeys, _footerValues, _headerBuffer, _headerCodes, _headerKeys, _headerValues, HEADER_CACHE_CONTROL, HEADER_CONNECTION, HEADER_CONTENT_LENGTH, HEADER_CONTENT_TYPE, HEADER_DATE, HEADER_SERVER
 
Method Summary
protected  AbstractResponseStream createResponseStream()
           
protected  WriteStream getRawWrite()
           
 java.lang.String toString()
           
protected  void writeContinueInt()
          Writes the 100 continue response.
protected  boolean writeHeadersInt(int length, boolean isHead)
          Implementation to write the HTTP headers.
 
Methods inherited from class com.caucho.server.http.AbstractHttpResponse
addDateHeader, addFooter, addHeader, addHeaderImpl, addIntHeader, clientDisconnect, close, containsHeader, fillCookie, finishInvocation, finishRequest, free, getCalendar, getContentLength, getContentLengthHeader, getFooterKeys, getFooterValues, getHeader, getHeaderKeys, getHeaderNames, getHeaders, getHeaderValues, getRequest, getResponse, getResponseOutputStream, getResponsePrintWriter, getResponseStream, hasFooter, isClosed, isCommitted, isConnectionClosed, isHead, isHeaderWritten, isIgnoreClientDisconnect, parseContentType, removeHeader, reset, setContentLength, setDateHeader, setFooter, setHead, setHeader, setHeaderImpl, setHeaderWritten, setIntHeader, setSpecial, startInvocation, startRequest, writeHeaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

createResponseStream

protected AbstractResponseStream createResponseStream()
Specified by:
createResponseStream in class AbstractHttpResponse

getRawWrite

protected WriteStream getRawWrite()

writeContinueInt

protected void writeContinueInt()
                         throws java.io.IOException
Writes the 100 continue response.

Overrides:
writeContinueInt in class AbstractHttpResponse
Throws:
java.io.IOException

writeHeadersInt

protected boolean writeHeadersInt(int length,
                                  boolean isHead)
                           throws java.io.IOException
Implementation to write the HTTP headers. If the length is positive, it's a small request where the buffer contains the entire request, so the length is already known.

Specified by:
writeHeadersInt in class AbstractHttpResponse
Parameters:
os - the output stream to write the headers to.
length - if non-negative, the length of the entire request.
Returns:
true if the data in the request should use chunked encoding.
Throws:
java.io.IOException

toString

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