Field Summary |
|
protected boolean | appCommitted |
protected byte[] | buffer The buffer through which all of our output bytes are passed. |
protected int | bufferCount The number of data bytes currently in the buffer. |
protected boolean | committed |
protected Connector | connector The Connector through which this Response is returned. |
protected int | contentCount The actual number of bytes written to this Response. |
protected int | contentLength The content length associated with this Response. |
protected String | contentType The content type associated with this Response. |
protected Context | context The Context within which this Response is being produced. |
protected String | encoding The character encoding associated with this Response. |
protected boolean | error Error flag. |
protected ResponseFacade | facade The facade associated with this response. |
protected boolean | included |
final protected static String | info Descriptive information about this Response implementation. |
protected Locale | locale The Locale associated with this Response. |
protected OutputStream | output The output stream associated with this Response. |
protected Request | request The Request with which this Response is associated. |
protected static StringManager | sm The string manager for this package. |
protected ServletOutputStream | stream The ServletOutputStream that has been returned by
getOutputStream() , if any. |
protected boolean | suspended |
protected PrintWriter | writer The PrintWriter that has been returned by
getWriter() , if any. |
Method Summary |
|
public ServletOutputStream | createOutputStream() Create and return a ServletOutputStream to write the content
associated with this Response. |
public void | finishResponse() Perform whatever actions are required to flush and close the output
stream or writer, in a single operation. |
public void | flushBuffer() Flush the buffer and commit this response. |
public int | getBufferSize() Return the actual buffer size used for this Response. |
public String | getCharacterEncoding() Return the character encoding used for this Response. |
public Connector | getConnector() Return the Connector through which this Response will be transmitted. |
public int | getContentCount() Return the number of bytes actually written to the output stream. |
public int | getContentLength() Return the content length that was set or calculated for this Response. |
public String | getContentType() Return the content type that was set or calculated for this response,
or null if no content type was set. |
public Context | getContext() Return the Context with which this Response is associated. |
public boolean | getIncluded() Return the "processing inside an include" flag. |
public String | getInfo() Return descriptive information about this Response implementation and
the corresponding version number, in the format
<description>/<version> . |
public Locale | getLocale() Return the Locale assigned to this response. |
public ServletOutputStream | getOutputStream() Return the servlet output stream associated with this Response. |
public PrintWriter | getReporter() Return a PrintWriter that can be used to render error messages,
regardless of whether a stream or writer has already been acquired. |
public Request | getRequest() Return the Request with which this Response is associated. |
public ServletResponse | getResponse() Return the ServletResponse for which this object
is the facade. |
public OutputStream | getStream() Return the output stream associated with this Response. |
public PrintWriter | getWriter() Return the writer associated with this Response. |
public boolean | isAppCommitted() Application commit flag accessor. |
public boolean | isCommitted() |
public boolean | isError() Error flag accessor. |
public boolean | isSuspended() Suspended flag accessor. |
public void | recycle() Release all object references, and initialize instance variables, in
preparation for reuse of this object. |
public void | reset() Clear any content written to the buffer. |
public void | resetBuffer() Reset the data buffer but not any status or header information. |
public void | setAppCommitted(boolean appCommitted) Set the application commit flag. |
public void | setBufferSize(int size) Set the buffer size to be used for this Response. |
public void | setConnector(Connector connector) Set the Connector through which this Response will be transmitted. |
public void | setContentLength(int length) Set the content length (in bytes) for this Response. |
public void | setContentType(String type) Set the content type for this Response. |
public void | setContext(Context context) Set the Context with which this Response is associated. |
public void | setError() Set the error flag. |
public void | setIncluded(boolean included) Set the "processing inside an include" flag. |
public void | setLocale(Locale locale) Set the Locale that is appropriate for this response, including
setting the appropriate character encoding. |
public void | setRequest(Request request) Set the Request with which this Response is associated. |
public void | setStream(OutputStream stream) Set the output stream associated with this Response. |
public void | setSuspended(boolean suspended) Set the suspended flag. |
public void | write(int b) Write the specified byte to our output stream, flushing if necessary. |
public void | write(byte b) Write b.length bytes from the specified byte array
to our output stream. |
public void | write(byte b, int off, int len) Write len bytes from the specified byte array, starting
at the specified offset, to our output stream. |