HttpMessage implementation.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private final HttpHeaders | |
| private HttpVersion |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | DefaultHttpMessage(final HttpVersion version, boolean validateHeaders, boolean singleFieldHeaders)
Deprecated
Use the
Creates a new instance.
DefaultHttpMessage(HttpVersion, HttpHeadersFactory) constructor instead,
ideally using the DefaultHttpHeadersFactory#headersFactory(),
or a factory that otherwise has validation enabled.
|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides io. |
| public HttpVersion | getProtocolVersion()
Implements io.
Deprecated
|
| public int | hashCode()
Overrides io. |
| public HttpHeaders | headers()
Implements io. |
| public HttpVersion | protocolVersion()
Implements io. HttpMessage
|
| public HttpMessage | setProtocolVersion(HttpVersion version)
Implements io. HttpMessage
|
| HASH_CODE_PRIME | back to summary |
|---|---|
| private static final int HASH_CODE_PRIME Hides io. | |
| headers | back to summary |
|---|---|
| private final HttpHeaders headers | |
| version | back to summary |
|---|---|
| private HttpVersion version | |
| DefaultHttpMessage | back to summary |
|---|---|
| protected DefaultHttpMessage(final HttpVersion version) Creates a new instance. | |
| DefaultHttpMessage | back to summary |
|---|---|
| protected DefaultHttpMessage(final HttpVersion version, boolean validateHeaders, boolean singleFieldHeaders)
Deprecated Use the Creates a new instance.
| |
| DefaultHttpMessage | back to summary |
|---|---|
| protected DefaultHttpMessage(HttpVersion version, HttpHeadersFactory headersFactory) Creates a new instance. | |
| DefaultHttpMessage | back to summary |
|---|---|
| protected DefaultHttpMessage(final HttpVersion version, HttpHeaders headers) Creates a new instance. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides io. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getProtocolVersion | back to summary |
|---|---|
| public HttpVersion getProtocolVersion() Implements io. Deprecated
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides io. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| headers | back to summary |
|---|---|
| public HttpHeaders headers() Implements io. Doc from io. Returns the headers of this message.
| |
| protocolVersion | back to summary |
|---|---|
| public HttpVersion protocolVersion() Implements io. Doc from io. Returns the protocol version of this
| |
| setProtocolVersion | back to summary |
|---|---|
| public HttpMessage setProtocolVersion(HttpVersion version) Implements io. Doc from io. Set the protocol version of this
| |