|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An interface which contains all the information received from the HTTP request message.
| Method Summary | |
String |
getHeader(String name)
Returns the first value encountered of the header with the given name. |
Enumeration |
getHeaderNames()
Returns an enumeration of all the names of the headers received in the message. |
String[] |
getHeaders(String name)
Returns all the values encountered of the header with the given name, or null if there were none. |
String |
getHTTPVersion()
Returns the server's HTTP version, of the form: |
int |
getIntHeader(String name)
Returns the first value encountered of the header with the given name as an integer. |
byte[] |
getMessage()
Retrieves the message body in bytes. |
int |
getMessageSize()
Retrieves the actual size of the returned message body. |
int |
getStatusCode()
Returns the status number associated with the message. |
String |
getStatusMessage()
Returns the status message associated with the message's status code. |
String |
getURI()
Retrieve the URI which returned this message. |
URL |
getURL()
Retrieve the URL which returned this message. |
| Method Detail |
public String getURI()
getURL()public URL getURL()
getURI()public Enumeration getHeaderNames()
Note that header names are case-insensitive.
public String getHeader(String name)
Note that header names are case-insensitive.
getHeaders( String ),
getIntHeader( String )public String[] getHeaders(String name)
Note that header names are case-insensitive.
getHeader( String ),
getIntHeader( String )public int getIntHeader(String name)
Note that header names are case-insensitive.
public int getMessageSize()
public int getStatusCode()
getStatusMessage()public String getStatusMessage()
getStatusCode()public byte[] getMessage()
public String getHTTPVersion()
HTTP/a.i
where a is the major version, and i is the
minor version. Currently, the only valid values are
HTTP/1.0 and HTTP/1.1.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||