org.apache.catalina
Interface HttpResponse
- Response
- CoyoteResponse, CoyoteResponse, DummyResponse
public interface HttpResponse
An HttpResponse is the Catalina-internal facade for an
HttpServletResponse
that is to be produced,
based on the processing of a corresponding HttpRequest
.
Version:
- Craig R. McClanahan
Cookie[] | getCookies() - Return an array of all cookies set for this response, or
a zero-length array if no cookies have been set.
|
String | getHeader(String name) - Return the value for the specified header, or
null if this
header has not been set.
|
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.
|
String[] | getHeaderValues(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.
|
String | getMessage() - Return the error message that was set with
sendError()
for this Response.
|
int | getStatus() - Return the HTTP status code associated with this Response.
|
void | reset(int status, String message) - Reset this response, and specify the values for the HTTP status code
and corresponding message.
|
createOutputStream , finishResponse , getConnector , getContentCount , getContentLength , getContentType , getContext , getIncluded , getInfo , getReporter , getRequest , getResponse , getStream , isAppCommitted , isError , isSuspended , recycle , resetBuffer , sendAcknowledgement , setAppCommitted , setConnector , setContext , setError , setIncluded , setRequest , setStream , setSuspended |
getCookies
public Cookie[] getCookies()
Return an array of all cookies set for this response, or
a zero-length array if no cookies have been set.
getHeader
public String getHeader(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.
name
- Header name to look up
getHeaderNames
public 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.
getHeaderValues
public String[] getHeaderValues(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.
name
- Header name to look up
getMessage
public String getMessage()
Return the error message that was set with sendError()
for this Response.
getStatus
public int getStatus()
Return the HTTP status code associated with this Response.
reset
public void reset(int status,
String message)
Reset this response, and specify the values for the HTTP status code
and corresponding message.
Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.