@Contract(threading=IMMUTABLE) public final class StatusLine extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
StatusLine.StatusClass
Standard classes of HTTP status codes, plus
OTHER for non-standard codes. |
| Constructor and Description |
|---|
StatusLine(HttpResponse response) |
StatusLine(ProtocolVersion version,
int statusCode,
String reasonPhrase)
Creates a new status line with the given version, status, and reason.
|
| Modifier and Type | Method and Description |
|---|---|
ProtocolVersion |
getProtocolVersion() |
String |
getReasonPhrase() |
StatusLine.StatusClass |
getStatusClass() |
int |
getStatusCode() |
String |
toString() |
public StatusLine(HttpResponse response)
public StatusLine(ProtocolVersion version, int statusCode, String reasonPhrase)
version - the protocol version of the responsestatusCode - the status code of the responsereasonPhrase - the reason phrase to the status code, or
nullpublic int getStatusCode()
public StatusLine.StatusClass getStatusClass()
public ProtocolVersion getProtocolVersion()
public String getReasonPhrase()
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.