StatusLine
| 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 int | statusCode
The status code. |
| Access | Constructor and Description |
|---|---|
| public | BasicStatusLine(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 Object | |
| public ProtocolVersion | |
| public String | |
| public int | |
| 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 | |
| statusCode | back to summary |
|---|---|
| private final int statusCode The status code. | |
| BasicStatusLine | back to summary |
|---|---|
| public BasicStatusLine(final ProtocolVersion version, final int statusCode, final String reasonPhrase) Creates a new status line with the given version, status, and reason.
| |
| clone | back to summary |
|---|---|
| public Object clone() throws CloneNotSupportedException Overrides java. Doc from java. Creates and returns a copy of this object. The precise meaning
of "copy" may depend on the class of the object. The general
intent is that, for any object will be true, and that the expression:x.clone() != x will bex.clone().getClass() == x.getClass() true, but these are not absolute requirements.
While it is typically the case that:
will bex.clone().equals(x) true, this is not an absolute requirement.
By convention, the returned object should be obtained by calling
By convention, the object returned by this method should be independent
of this object (which is being cloned). To achieve this independence,
it may be necessary to modify one or more fields of the object returned
by
| |
| getProtocolVersion | back to summary |
|---|---|
| public ProtocolVersion getProtocolVersion() Implements org.
| |
| getReasonPhrase | back to summary |
|---|---|
| public String getReasonPhrase() Implements org.
| |
| getStatusCode | back to summary |
|---|---|
| public int getStatusCode() Implements org.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |