| Modifier and Type | Class and Description |
|---|---|
| public static enum | StatusLine.StatusClass
Standard classes of HTTP status codes, plus |
| Modifier and Type | Field and Description |
|---|---|
| private final ProtocolVersion | protoVersion
The protocol version. |
| private final String | reasonPhrase
The reason phrase. |
| private static final long | |
| private final StatusLine. | statusClass
The status code class. |
| private final int | statusCode
The status code. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | StatusLine(final ProtocolVersion
the protocol version of the response version, final int the status code of the response statusCode, final String the reason phrase to the status code, or
reasonPhrase)nullCreates a new status line with the given version, status, and reason. |
| Modifier and Type | Method and Description |
|---|---|
| public ProtocolVersion | |
| public String | |
| public StatusLine. | |
| public int | |
| public boolean | |
| public boolean | isError()
Whether this status code is in the HTTP series |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public String |
| protoVersion | back to summary |
|---|---|
| private final ProtocolVersion protoVersion The protocol version. | |
| reasonPhrase | back to summary |
|---|---|
| private final String reasonPhrase The reason phrase. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| statusClass | back to summary |
|---|---|
| private final StatusLine. The status code class. | |
| statusCode | back to summary |
|---|---|
| private final int statusCode The status code. | |
| StatusLine | back to summary |
|---|---|
| public StatusLine(final HttpResponse response) | |
| StatusLine | back to summary |
|---|---|
| public StatusLine(final ProtocolVersion version, final int statusCode, final String reasonPhrase) Creates a new status line with the given version, status, and reason.
| |
| getProtocolVersion | back to summary |
|---|---|
| public ProtocolVersion getProtocolVersion() | |
| getReasonPhrase | back to summary |
|---|---|
| public String getReasonPhrase() | |
| getStatusClass | back to summary |
|---|---|
| public StatusLine. | |
| getStatusCode | back to summary |
|---|---|
| public int getStatusCode() | |
| isClientError | back to summary |
|---|---|
| public boolean isClientError() Whether this status code is in the HTTP series
| |
| isError | back to summary |
|---|---|
| public boolean isError() Whether this status code is in the HTTP series
| |
| isInformational | back to summary |
|---|---|
| public boolean isInformational() Whether this status code is in the HTTP series
| |
| isRedirection | back to summary |
|---|---|
| public boolean isRedirection() Whether this status code is in the HTTP series
| |
| isServerError | back to summary |
|---|---|
| public boolean isServerError() Whether this status code is in the HTTP series
| |
| isSuccessful | back to summary |
|---|---|
| public boolean isSuccessful() Whether this status code is in the HTTP series
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
OTHER for non-standard codes.
| Modifier and Type | Field and Description |
|---|---|
| public static final StatusLine. | CLIENT_ERROR
Client Error |
| public static final StatusLine. | INFORMATIONAL
Informational |
| public static final StatusLine. | OTHER
Any other HTTP status codes (e.g. non-standard status codes). |
| public static final StatusLine. | REDIRECTION
Redirection |
| public static final StatusLine. | SERVER_ERROR
|
| public static final StatusLine. | SUCCESSFUL
Successful |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static StatusLine. | Returns: class of the response status code.response status code to get the class for. statusCode)Gets the response status class for the given status code. |
| public static StatusLine. | |
| public static StatusLine. |
| CLIENT_ERROR | back to summary |
|---|---|
| public static final StatusLine. Client Error | |
| INFORMATIONAL | back to summary |
|---|---|
| public static final StatusLine. Informational | |
| OTHER | back to summary |
|---|---|
| public static final StatusLine. Any other HTTP status codes (e.g. non-standard status codes). | |
| REDIRECTION | back to summary |
|---|---|
| public static final StatusLine. Redirection | |
| SERVER_ERROR | back to summary |
|---|---|
| public static final StatusLine.
| |
| SUCCESSFUL | back to summary |
|---|---|
| public static final StatusLine. Successful | |
| StatusClass | back to summary |
|---|---|
| private StatusClass() | |
| from | back to summary |
|---|---|
| public static StatusLine. Gets the response status class for the given status code.
| |
| valueOf | back to summary |
|---|---|
| public static StatusLine. | |
| values | back to summary |
|---|---|
| public static StatusLine. | |