|
HttpResponse (Catalina Internal API Documentation)
org.apache.catalina
|
Method Summary | |
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. |
java.lang.String |
getHeader(java.lang.String name)
Return the value for the specified header, or null if this
header has not been set. |
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. |
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. |
java.lang.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,
java.lang.String message)
Reset this response, and specify the values for the HTTP status code and corresponding message. |
Methods inherited from interface org.apache.catalina.Response |
createOutputStream, finishResponse, getConnector, getContentCount, getContentLength, getContentType, getContext, getIncluded, getInfo, getReporter, getRequest, getResponse, getStream, isAppCommitted, isError, isSuspended, recycle, resetBuffer, setAppCommitted, setConnector, setContext, setError, setIncluded, setRequest, setStream, setSuspended |
Method Detail |
public javax.servlet.http.Cookie[] getCookies()
public java.lang.String getHeader(java.lang.String name)
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 uppublic java.lang.String[] getHeaderNames()
public java.lang.String[] getHeaderValues(java.lang.String name)
name
- Header name to look uppublic java.lang.String getMessage()
sendError()
for this Response.
public int getStatus()
public void reset(int status, java.lang.String message)
java.lang.IllegalStateException
- if this response has already been
committed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |