HttpResponse implementation.
| Modifier and Type | Field and Description |
|---|---|
| private HttpResponseStatus |
| Access | Constructor and Description |
|---|---|
| public | DefaultHttpResponse(HttpVersion
the HTTP version of this response version, HttpResponseStatus the status of this response status)Creates a new instance. |
| public | DefaultHttpResponse(HttpVersion
the HTTP version of this response version, HttpResponseStatus the status of this response status, boolean validate the header names and values when adding them to the validateHeaders)HttpHeaders
Deprecated
Use the
Creates a new instance.
DefaultHttpResponse(HttpVersion, HttpResponseStatus, HttpHeadersFactory) constructor
instead.
|
| public | DefaultHttpResponse(HttpVersion
the HTTP version of this response version, HttpResponseStatus the status of this response status, boolean validate the header names and values when adding them to the validateHeaders, boolean HttpHeaderstrue to check and enforce that headers with the same name are appended
to the same entry and comma separated.
See RFC 7230, 3.2.2.
false to allow multiple header entries with the same name to
coexist.
Deprecated
Use the
Creates a new instance.
DefaultHttpResponse(HttpVersion, HttpResponseStatus, HttpHeadersFactory) constructor
instead.
|
| public | DefaultHttpResponse(HttpVersion
the HTTP version of this response version, HttpResponseStatus the status of this response status, HttpHeadersFactory the headersFactory)HttpHeadersFactory used to create the headers for this HTTP Response.
The recommended default is DefaultHttpHeadersFactory#headersFactory().Creates a new instance. |
| public | DefaultHttpResponse(HttpVersion
the HTTP version of this response version, HttpResponseStatus the status of this response status, HttpHeaders the headers for this HTTP Response headers)Creates a new instance. |
| status | back to summary |
|---|---|
| private HttpResponseStatus status | |
| DefaultHttpResponse | back to summary |
|---|---|
| public DefaultHttpResponse(HttpVersion version, HttpResponseStatus status) Creates a new instance.
| |
| DefaultHttpResponse | back to summary |
|---|---|
| public DefaultHttpResponse(HttpVersion version, HttpResponseStatus status, boolean validateHeaders)
Deprecated Use the Creates a new instance.
| |
| DefaultHttpResponse | back to summary |
|---|---|
| public DefaultHttpResponse(HttpVersion version, HttpResponseStatus status, boolean validateHeaders, boolean singleFieldHeaders)
Deprecated Use the Creates a new instance.
| |
| DefaultHttpResponse | back to summary |
|---|---|
| public DefaultHttpResponse(HttpVersion version, HttpResponseStatus status, HttpHeadersFactory headersFactory) Creates a new instance.
| |
| DefaultHttpResponse | back to summary |
|---|---|
| public DefaultHttpResponse(HttpVersion version, HttpResponseStatus status, 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. | |
| getStatus | back to summary |
|---|---|
| public HttpResponseStatus getStatus() 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
| |
| setProtocolVersion | back to summary |
|---|---|
| public HttpResponse setProtocolVersion(HttpVersion version) Overrides io. Implements io. Doc from io. Set the protocol version of this
| |
| setStatus | back to summary |
|---|---|
| public HttpResponse setStatus(HttpResponseStatus status) Implements io. Doc from io. Set the status of this
| |
| status | back to summary |
|---|---|
| public HttpResponseStatus status() Implements io. Doc from io. Returns the status of this
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |