FileDocCategorySizeDatePackage
HttpResponse.javaAPI DocGlassfish v2 API4041Fri May 04 22:31:52 BST 2007org.apache.catalina

HttpResponse

public interface HttpResponse implements Response
An HttpResponse is the Catalina-internal facade for an HttpServletResponse that is to be produced, based on the processing of a corresponding HttpRequest.
author
Craig R. McClanahan
version
$Revision: 1.3 $ $Date: 2007/05/05 05:31:51 $

Fields Summary
Constructors Summary
Methods Summary
public javax.servlet.http.Cookie[]getCookies()
Return an array of all cookies set for this response, or a zero-length array if no cookies have been set.

public java.lang.StringgetHeader(java.lang.String name)
Return the value for the specified header, or null if this header has not been set. If more than one value was added for this name, only the first is returned; use getHeaderValues() to retrieve all of them.

param
name Header name to look up

public java.lang.String[]getHeaderNames()
Return an array of all the header names set for this response, or a zero-length array if no headers have been set.

public java.lang.String[]getHeaderValues(java.lang.String name)
Return an array of all the header values associated with the specified header name, or an zero-length array if there are no such header values.

param
name Header name to look up

public java.lang.StringgetMessage()
Return the error message that was set with sendError() for this Response.

public intgetStatus()
Return the HTTP status code associated with this Response.

public voidreset(int status, java.lang.String message)
Reset this response, and specify the values for the HTTP status code and corresponding message.

exception
IllegalStateException if this response has already been committed