HttpRequest implementation.
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private HttpMethod | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | DefaultHttpRequest(HttpVersion
the HTTP version of the request httpVersion, HttpMethod the HTTP method of the request method, String the URI or path of the request uri)Creates a new instance. |
| public | DefaultHttpRequest(HttpVersion
the HTTP version of the request httpVersion, HttpMethod the HTTP method of the request method, String the URI or path of the request uri, boolean validate the header names and values when adding them to the validateHeaders)HttpHeadersCreates a new instance. |
| public | DefaultHttpRequest(HttpVersion
the HTTP version of the request httpVersion, HttpMethod the HTTP method of the request method, String the URI or path of the request uri, HttpHeaders the Headers for this Request headers)Creates a new instance. |
| HASH_CODE_PRIME | back to summary |
|---|---|
| private static final int HASH_CODE_PRIME Hides io. | |
| method | back to summary |
|---|---|
| private HttpMethod method | |
| uri | back to summary |
|---|---|
| private String uri | |
| DefaultHttpRequest | back to summary |
|---|---|
| public DefaultHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri) Creates a new instance.
| |
| DefaultHttpRequest | back to summary |
|---|---|
| public DefaultHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, boolean validateHeaders) Creates a new instance.
| |
| DefaultHttpRequest | back to summary |
|---|---|
| public DefaultHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri, 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. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides io. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| method | back to summary |
|---|---|
| public HttpMethod method() Implements io. Doc from io. Returns the
| |
| setMethod | back to summary |
|---|---|
| public HttpRequest setMethod(HttpMethod method) Implements io. Doc from io. Set the
| |
| setProtocolVersion | back to summary |
|---|---|
| public HttpRequest setProtocolVersion(HttpVersion version) Overrides io. Implements io. Doc from io. Set the protocol version of this
| |
| setUri | back to summary |
|---|---|
| public HttpRequest setUri(String uri) Implements io. Doc from io. Set the requested URI (or alternatively, path)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| uri | back to summary |
|---|---|
| public String uri() Implements io. Doc from io. Returns the requested URI (or alternatively, path) | |