|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Report
The Report
interface is used to describe a HTTP
response message. Reporting the various HTTP error and status
messages requires that a status code and textual description
be provided in the response, also depending on the type of
response a description of the cause can be provided in the
HTTP message body.
The getCode
method must return a valid HTTP
status code so that it can be used to describe the response,
also the getText
method must supply a short
description of the response. For example, a description for
the 404 HTTP status code would be 'File Not Found', for more
information of valid descriptions see RFC 2616 section 6.1.1.
Method Summary | |
---|---|
java.lang.String |
getCause()
This is used to acquire a detailed message describing the cause of the error. |
int |
getCode()
Returns the HTTP status code that this report represents. |
java.lang.String |
getText()
Returns a short description of what caused this report. |
Method Detail |
---|
int getCode()
java.lang.String getText()
java.lang.String getCause()
printStackTrace
method.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |