|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StatusLine
The StatusLine
is used to represent a HTTP status
line. This provides several convenience methods that can be used
to manipulate a HTTP status line. see the RFC (RFC 2616) for the
syntax of a status line.
Method Summary | |
---|---|
int |
getCode()
This represents the status code of the HTTP response. |
int |
getMajor()
This can be used to get the major number from a HTTP version. |
int |
getMinor()
This can be used to get the minor number from a HTTP version. |
java.lang.String |
getText()
This can be used to retrieve the text of a HTTP status line. |
void |
setCode(int code)
This method allows the status for the response to be changed. |
void |
setMajor(int major)
This can be used to specify the major version. |
void |
setMinor(int minor)
This can be used to specify the minor version. |
void |
setText(java.lang.String text)
This is used to set the text of the HTTP status line. |
Method Detail |
---|
int getCode()
void setCode(int code)
code
- the new status code for the HTTP responsejava.lang.String getText()
void setText(java.lang.String text)
text
- the descriptive text message of the statusint getMajor()
void setMajor(int major)
major
- this is the major number desiredint getMinor()
void setMinor(int minor)
minor
- this is the minor number desired
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |