| |
|
| java.lang.Object com.caucho.server.connection.AbstractHttpResponse com.caucho.server.http.HttpResponse
Method Summary | |
public WriteStream | getRawOutput() Switch to raw socket mode. | public boolean | isTop() Return true for the top request. | public void | switchToRaw() Switch to raw socket mode. | public String | toString() | protected void | writeContinueInt(WriteStream os) Writes the 100 continue response. | protected boolean | writeHeadersInt(WriteStream os, int length) Implementation to write the HTTP headers. |
_charsetBytes | final static byte[] _charsetBytes(Code) | | |
_closeCb | final static CharBuffer _closeCb(Code) | | |
_connectionCb | final static char[] _connectionCb(Code) | | |
_connectionCloseBytes | final static byte[] _connectionCloseBytes(Code) | | |
_contentLengthBytes | final static byte[] _contentLengthBytes(Code) | | |
_contentTypeBytes | final static byte[] _contentTypeBytes(Code) | | |
_http10ok | final static byte[] _http10ok(Code) | | |
_http11ok | final static byte[] _http11ok(Code) | | |
_resinServerBytes | final byte[] _resinServerBytes(Code) | | |
_textHtmlBytes | final static byte[] _textHtmlBytes(Code) | | |
_textHtmlLatin1Bytes | final static byte[] _textHtmlLatin1Bytes(Code) | | |
HttpResponse | HttpResponse(HttpRequest request)(Code) | | Creates a new HTTP-protocol response.
Parameters: request - the matching request object. |
getRawOutput | public WriteStream getRawOutput() throws IOException(Code) | | Switch to raw socket mode.
|
isTop | public boolean isTop()(Code) | | Return true for the top request.
|
switchToRaw | public void switchToRaw() throws IOException(Code) | | Switch to raw socket mode.
|
writeContinueInt | protected void writeContinueInt(WriteStream os) throws IOException(Code) | | Writes the 100 continue response.
|
writeHeadersInt | protected boolean writeHeadersInt(WriteStream os, int length) throws IOException(Code) | | 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.
Parameters: os - the output stream to write the headers to. Parameters: length - if non-negative, the length of the entire request. true if the data in the request should use chunked encoding. |
Methods inherited from com.caucho.server.connection.AbstractHttpResponse | public void addCookie(Cookie cookie)(Code)(Java Doc) public void addDateHeader(String key, long value)(Code)(Java Doc) public void addFooter(String key, String value)(Code)(Java Doc) public void addHeader(String key, String value)(Code)(Java Doc) public void addIntHeader(String key, int value)(Code)(Java Doc) public void clearBuffer()(Code)(Java Doc) public void close() throws IOException(Code)(Java Doc) public boolean containsHeader(String name)(Code)(Java Doc) protected AbstractResponseStream createResponseStream()(Code)(Java Doc) public boolean disableCaching(boolean disable)(Code)(Java Doc) public boolean disableHeaders(boolean disable)(Code)(Java Doc) public String encodeRedirectURL(String string)(Code)(Java Doc) public String encodeRedirectUrl(String string)(Code)(Java Doc) public String encodeURL(String string)(Code)(Java Doc) public String encodeUrl(String string)(Code)(Java Doc) public boolean fillCookie(CharBuffer cb, Cookie cookie, long date, int version, boolean isCookie2)(Code)(Java Doc) public void finish() throws IOException(Code)(Java Doc) public void flushBuffer() throws IOException(Code)(Java Doc) public void flushHeader() throws IOException(Code)(Java Doc) protected void free()(Code)(Java Doc) public int getBufferSize()(Code)(Java Doc) final protected QDate getCalendar()(Code)(Java Doc) public String getCharacterEncoding()(Code)(Java Doc) public int getContentLength()(Code)(Java Doc) public long getContentLengthHeader()(Code)(Java Doc) public String getContentType()(Code)(Java Doc) protected ConnectionController getController()(Code)(Java Doc) public Cookie getCookie(String name)(Code)(Java Doc) public ArrayList getCookies()(Code)(Java Doc) public FlushBuffer getFlushBuffer()(Code)(Java Doc) public boolean getForbidForward()(Code)(Java Doc) public String getHeader(String name)(Code)(Java Doc) public Locale getLocale()(Code)(Java Doc) public PrintWriter getNextWriter()(Code)(Java Doc) public CauchoRequest getOriginalRequest()(Code)(Java Doc) public AbstractResponseStream getOriginalStream()(Code)(Java Doc) public ServletOutputStream getOutputStream() throws IOException(Code)(Java Doc) public boolean getPrivateCache()(Code)(Java Doc) public WriteStream getRawOutput() throws IOException(Code)(Java Doc) public int getRemaining()(Code)(Java Doc) public CauchoRequest getRequest()(Code)(Java Doc) public ServletResponse getResponse()(Code)(Java Doc) public AbstractResponseStream getResponseStream()(Code)(Java Doc) public int getStatusCode()(Code)(Java Doc) public PrintWriter getWriter() throws IOException(Code)(Java Doc) public boolean hasError()(Code)(Java Doc) public void init(WriteStream stream)(Code)(Java Doc) public void init(CauchoRequest request)(Code)(Java Doc) public boolean isCauchoResponseStream()(Code)(Java Doc) public boolean isClosed()(Code)(Java Doc) public boolean isCommitted()(Code)(Java Doc) final protected boolean isHead()(Code)(Java Doc) final public boolean isHeaderWritten()(Code)(Java Doc) public boolean isIgnoreClientDisconnect()(Code)(Java Doc) public boolean isNoCache()(Code)(Java Doc) protected boolean isPrivateCache()(Code)(Java Doc) public boolean isTop()(Code)(Java Doc) public void killCache()(Code)(Java Doc) public void killCaching()(Code)(Java Doc) public void removeHeader(String key)(Code)(Java Doc) public void reset()(Code)(Java Doc) public void resetBuffer()(Code)(Java Doc) public void sendError(int code) throws IOException(Code)(Java Doc) public void sendError(int code, String value) throws IOException(Code)(Java Doc) public void sendRedirect(String url) throws IOException(Code)(Java Doc) public void setBufferSize(int size)(Code)(Java Doc) public void setCacheInvocation(AbstractCacheFilterChain cacheInvocation)(Code)(Java Doc) public void setCharacterEncoding(String encoding)(Code)(Java Doc) public void setContentLength(int length)(Code)(Java Doc) public void setContentType(String value)(Code)(Java Doc) public void setDateHeader(String name, long value)(Code)(Java Doc) public void setDisableAutoFlush(boolean disable)(Code)(Java Doc) public void setFlushBuffer(FlushBuffer flushBuffer)(Code)(Java Doc) public void setFooter(String key, String value)(Code)(Java Doc) public void setForbidForward(boolean forbid)(Code)(Java Doc) public void setHasError(boolean hasError)(Code)(Java Doc) public void setHeader(String key, String value)(Code)(Java Doc) final public void setHeaderWritten(boolean isWritten)(Code)(Java Doc) public void setIntHeader(String name, int value)(Code)(Java Doc) public void setLocale(Locale locale)(Code)(Java Doc) public void setMatchCacheEntry(AbstractCacheEntry entry)(Code)(Java Doc) public void setNoCache(boolean isNoCache)(Code)(Java Doc) public void setPrivateCache(boolean isPrivate)(Code)(Java Doc) public void setPrivateOrResinCache(boolean isPrivate)(Code)(Java Doc) public void setRequest(CauchoRequest req)(Code)(Java Doc) public void setResponseStream(AbstractResponseStream responseStream)(Code)(Java Doc) public void setSessionId(String id)(Code)(Java Doc) protected boolean setSpecial(String key, String value)(Code)(Java Doc) public void setStatus(int code)(Code)(Java Doc) public void setStatus(int code, String message)(Code)(Java Doc) public void setTopCache(boolean isTopCache)(Code)(Java Doc) public void start() throws IOException(Code)(Java Doc) protected boolean startCaching(boolean isByte)(Code)(Java Doc) public void switchToRaw() throws IOException(Code)(Java Doc) protected void writeContinueInt(WriteStream os) throws IOException(Code)(Java Doc) protected boolean writeHeaders(WriteStream os, int length) throws IOException(Code)(Java Doc) abstract protected boolean writeHeadersInt(WriteStream os, int length) throws IOException(Code)(Java Doc)
|
|
|
|