|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgnu.inet.http.Response
public class Response
An HTTP response.
| Field Summary | |
|---|---|
protected int |
code
The HTTP status code of the response. |
protected int |
codeClass
The class of the response. |
protected Headers |
headers
The response headers. |
protected int |
majorVersion
The HTTP major version of the server issuing the response. |
protected java.lang.String |
message
Human-readable text of the response. |
protected int |
minorVersion
The HTTP minor version of the server issuing the response. |
| Constructor Summary | |
|---|---|
protected |
Response(int majorVersion,
int minorVersion,
int code,
int codeClass,
java.lang.String message,
Headers headers)
Constructs a new response with the specified parameters. |
| Method Summary | |
|---|---|
int |
getCode()
Returns the HTTP status code of the response. |
int |
getCodeClass()
Returns the class of the response. |
java.util.Date |
getDateHeader(java.lang.String name)
Returns the header value for the specified name as a date. |
java.lang.String |
getHeader(java.lang.String name)
Returns the header value for the specified name. |
Headers |
getHeaders()
Returns the headers in the response. |
int |
getIntHeader(java.lang.String name)
Returns the header value for the specified name as an integer. |
int |
getMajorVersion()
Returns the HTTP major version of the server issuing the response. |
java.lang.String |
getMessage()
Returns the human-readable text of the response. |
int |
getMinorVersion()
Returns the HTTP minor version of the server issuing the response. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final int majorVersion
protected final int minorVersion
protected final int code
protected final int codeClass
1xx2xx3xx4xx5xx
protected final java.lang.String message
protected final Headers headers
| Constructor Detail |
|---|
protected Response(int majorVersion,
int minorVersion,
int code,
int codeClass,
java.lang.String message,
Headers headers)
| Method Detail |
|---|
public int getMajorVersion()
majorVersionpublic int getMinorVersion()
minorVersionpublic int getCode()
codepublic int getCodeClass()
codeClasspublic java.lang.String getMessage()
messagepublic Headers getHeaders()
public java.lang.String getHeader(java.lang.String name)
name - the header namepublic int getIntHeader(java.lang.String name)
name - the header namepublic java.util.Date getDateHeader(java.lang.String name)
name - the header name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||