Method Summary |
|
public void | addCookie(Cookie cookie) Adds a cookie to the response. |
public void | addDateHeader(String key, long value) Convenience for adding a date header. |
public void | addFooter(String key, String value) Adds a new footer. |
public void | addHeader(String key, String value) Adds a new header. |
public void | addIntHeader(String key, int value) Convenience for adding an integer header. |
public void | clearBuffer() |
public void | close() Closes the request. |
public boolean | containsHeader(String name) Returns true if the response already contains the named header. |
protected AbstractResponseStream | createResponseStream() |
public boolean | disableCaching(boolean disable) |
public boolean | disableHeaders(boolean disable) |
public String | encodeRedirectURL(String string) |
public String | encodeRedirectUrl(String string) |
public String | encodeURL(String string) Encode the URL with the session jd. |
public String | encodeUrl(String string) |
public boolean | fillCookie(CharBuffer cb, Cookie cookie, long date, int version, boolean isCookie2) |
public void | finish() Complete the request. |
public void | flushBuffer() |
public void | flushHeader() |
protected void | free() |
TempBuffer | getBuffer() |
public int | getBufferSize() |
final protected QDate | getCalendar() |
public String | getCharacterEncoding() Gets the character encoding. |
public int | getContentLength() Returns the number of bytes sent to the output. |
public long | getContentLengthHeader() Returns the value of the content-length header. |
public String | getContentType() Gets the content type. |
protected ConnectionController | getController() |
public Cookie | getCookie(String name) |
public ArrayList | getCookies() |
public FlushBuffer | getFlushBuffer() |
public boolean | getForbidForward() Returns true if RequestDispatcher.forward() is disallowed on
this stream. |
public String | getHeader(String name) Returns the value of an already set output header. |
public Locale | getLocale() |
public PrintWriter | getNextWriter() Returns the parent writer. |
public CauchoRequest | getOriginalRequest() |
public AbstractResponseStream | getOriginalStream() Gets the response stream. |
public ServletOutputStream | getOutputStream() Returns the ServletOutputStream for the response. |
public boolean | getPrivateCache() Returns the value of the private cache. |
public WriteStream | getRawOutput() Switch to raw socket mode. |
String | getRealCharacterEncoding() |
public int | getRemaining() |
public CauchoRequest | getRequest() Returns the corresponding request. |
public ServletResponse | getResponse() Returns the next response. |
public AbstractResponseStream | getResponseStream() Gets the response stream. |
public int | getStatusCode() |
public PrintWriter | getWriter() Returns a PrintWriter for the response. |
public boolean | hasError() Returns true if we're processing an error. |
public void | init(WriteStream stream) Initialize the response for a new request. |
public void | init(CauchoRequest request) Initialize the response for a new request. |
public boolean | isCauchoResponseStream() Returns true for a Caucho response stream. |
public boolean | isClosed() Returns true for closed requests. |
public boolean | isCommitted() Returns true if some data has been sent to the browser. |
final protected boolean | isHead() For a HEAD request, the response stream should write no data. |
final public boolean | isHeaderWritten() Returns true if the headers have been written. |
public boolean | isIgnoreClientDisconnect() If set true, client disconnect exceptions are no propagated to the
server code. |
public boolean | isNoCache() |
protected boolean | isPrivateCache() |
public boolean | isTop() Return true for the top request. |
public void | killCache() Set if the page is non-cacheable. |
public void | killCaching() |
public void | removeHeader(String key) |
public void | reset() |
void | reset(boolean force) |
public void | resetBuffer() |
public void | sendError(int code) |
public void | sendError(int code, String value) Sends an HTTP error to the browser. |
public void | sendRedirect(String url) Sends a redirect to the browser. |
public void | setBufferSize(int size) |
public void | setCacheInvocation(AbstractCacheFilterChain cacheInvocation) Sets the cache invocation to indicate that the response might be
cacheable. |
public void | setCharacterEncoding(String encoding) Sets the character encoding. |
public void | setContentLength(int length) Sets the content length of the result. |
public void | setContentType(String value) Sets the browser content type. |
public void | setDateHeader(String name, long value) Convenience for setting a date header. |
public void | setDisableAutoFlush(boolean disable) |
public void | setFlushBuffer(FlushBuffer flushBuffer) |
public void | setFooter(String key, String value) |
public void | setForbidForward(boolean forbid) When set to true, RequestDispatcher.forward() is disallowed on
this stream. |
public void | setHasError(boolean hasError) Set to true while processing an error. |
void | setHead() For a HEAD request, the response stream should write no data. |
public void | setHeader(String key, String value) Sets a header, replacing an already-existing header. |
final public void | setHeaderWritten(boolean isWritten) Returns true if the headers have been written. |
public void | setIntHeader(String name, int value) Convenience for setting an integer header. |
public void | setLocale(Locale locale) |
public void | setMatchCacheEntry(AbstractCacheEntry entry) Sets the cache entry so we can use it if the servlet returns
not_modified response. |
public void | setNoCache(boolean isNoCache) Set if the page is non-cacheable. |
public void | setPrivateCache(boolean isPrivate) Sets true if the cache is only for the browser, but not
Resin's cache or proxies. |
public void | setPrivateOrResinCache(boolean isPrivate) Sets true if the cache is only for the browser and
Resin's cache but not proxies. |
public void | setRequest(CauchoRequest req) Sets the corresponding request. |
public void | setResponseStream(AbstractResponseStream responseStream) |
public void | setSessionId(String id) |
protected boolean | setSpecial(String key, String value) Special processing for a special value. |
public void | setStatus(int code) |
public void | setStatus(int code, String message) |
public void | setTopCache(boolean isTopCache) |
public void | start() Initializes the Response at the beginning of the request. |
protected boolean | startCaching(boolean isByte) Called to start caching. |
boolean | startCaching(ArrayList<String> keys, ArrayList<String> values, String contentType, String charEncoding, boolean isByte) Tests to see if the response is cacheable. |
public void | switchToRaw() Switch to raw socket mode. |
final void | writeContinue() |
protected void | writeContinueInt(WriteStream os) |
protected boolean | writeHeaders(WriteStream os, int length) Writes the headers to the stream. |
abstract protected boolean | writeHeadersInt(WriteStream os, int length) |