HttpRequest.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private URIAuthority | |
| private final String | |
| private String | |
| private URI | |
| private String | |
| private static final long | |
| private ProtocolVersion |
| Access | Constructor and Description |
|---|---|
| public | BasicHttpRequest(final String
request method. method, final String request scheme. scheme, final URIAuthority request authority. authority, final String request path. path)Creates request message with the given method, host and request path. |
| public | BasicHttpRequest(final String
request method. method, final String request path. path)Creates request message with the given method and request path. |
| public | BasicHttpRequest(final String
request method. method, final HttpHost request host. host, final String request path. path)Creates request message with the given method, host and request path. |
| public | BasicHttpRequest(final String
request method. method, final URI request URI. requestUri)Creates request message with the given method, request URI. |
| public | BasicHttpRequest(final Method
request method. method, final String request path. path)Creates request message with the given method and request path. |
| public | BasicHttpRequest(final Method
request method. method, final HttpHost request host. host, final String request path. path)Creates request message with the given method, host and request path. |
| public | BasicHttpRequest(final Method
request method. method, final URI request URI. requestUri)Creates request message with the given method, request URI. |
| Modifier and Type | Method and Description |
|---|---|
| public void | addHeader(final String
the name of the header. name, final Object the value of the header, taken as the value's value)Object#toString().Implements org. |
| private void | |
| public URIAuthority | getAuthority()
Implements org. |
| public String | getMethod()
Implements org. |
| public String | getPath()
Implements org. null if not set.
|
| public String | getRequestUri()
Implements org. |
| public String | getScheme()
Implements org. |
| public URI | getUri()
Implements org. |
| public ProtocolVersion | getVersion()
Implements org. null when not available.
|
| public void | setAbsoluteRequestUri(final boolean absoluteRequestUri)
Sets a flag that the |
| public void | setAuthority(final URIAuthority authority)
Implements org. |
| public void | setHeader(final String
the name of the header. name, final Object the value of the header, taken as the value's value)Object#toString().Implements org. |
| public void | setPath(final String path)
Implements org. |
| public void | setScheme(final String scheme)
Implements org. |
| public void | setUri(final URI
the request URI. requestUri)Implements org. |
| public void | setVersion(final ProtocolVersion version)
Implements org. |
| public String | toString()
Overrides org. |
| absoluteRequestUri | back to summary |
|---|---|
| private boolean absoluteRequestUri | |
| authority | back to summary |
|---|---|
| private URIAuthority authority | |
| method | back to summary |
|---|---|
| private final String method | |
| path | back to summary |
|---|---|
| private String path | |
| requestUri | back to summary |
|---|---|
| private URI requestUri | |
| scheme | back to summary |
|---|---|
| private String scheme | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| version | back to summary |
|---|---|
| private ProtocolVersion version | |
| BasicHttpRequest | back to summary |
|---|---|
| public BasicHttpRequest(final String method, final String scheme, final URIAuthority authority, final String path) Creates request message with the given method, host and request path.
| |
| BasicHttpRequest | back to summary |
|---|---|
| public BasicHttpRequest(final String method, final String path) Creates request message with the given method and request path. | |
| BasicHttpRequest | back to summary |
|---|---|
| public BasicHttpRequest(final String method, final HttpHost host, final String path) Creates request message with the given method, host and request path. | |
| BasicHttpRequest | back to summary |
|---|---|
| public BasicHttpRequest(final String method, final URI requestUri) Creates request message with the given method, request URI. | |
| BasicHttpRequest | back to summary |
|---|---|
| public BasicHttpRequest(final Method method, final String path) Creates request message with the given method and request path. | |
| BasicHttpRequest | back to summary |
|---|---|
| public BasicHttpRequest(final Method method, final HttpHost host, final String path) Creates request message with the given method, host and request path. | |
| BasicHttpRequest | back to summary |
|---|---|
| public BasicHttpRequest(final Method method, final URI requestUri) Creates request message with the given method, request URI. | |
| addHeader | back to summary |
|---|---|
| public void addHeader(final String name, final Object value) Implements org. Doc from org. Adds a header to this message. The header will be appended to the end of the list.
| |
| assembleRequestUri | back to summary |
|---|---|
| private void assembleRequestUri(final StringBuilder buf) | |
| getAuthority | back to summary |
|---|---|
| public URIAuthority getAuthority() Implements org. Doc from org. Returns authority of this request message.
| |
| getMethod | back to summary |
|---|---|
| public String getMethod() Implements org. Doc from org. Returns method of this request message. | |
| getPath | back to summary |
|---|---|
| public String getPath() Implements org. Doc from org. Returns URI path of this request message or | |
| getRequestUri | back to summary |
|---|---|
| public String getRequestUri() Implements org. Doc from org. Returns request URI of this request message. It may be an absolute or relative URI. Applicable to HTTP/1.1 version or earlier. | |
| getScheme | back to summary |
|---|---|
| public String getScheme() Implements org. Doc from org. Returns scheme of this request message. | |
| getUri | back to summary |
|---|---|
| public URI getUri() throws URISyntaxException Implements org. Doc from org. Returns full request URI of this request message. | |
| getVersion | back to summary |
|---|---|
| public ProtocolVersion getVersion() Implements org. Doc from org. Returns protocol version or For incoming messages it represents protocol version this message was transmitted with. For outgoing messages it represents a hint what protocol version should be used to transmit the message.
| |
| setAbsoluteRequestUri | back to summary |
|---|---|
| public void setAbsoluteRequestUri(final boolean absoluteRequestUri) Sets a flag that the This flag can used when the request is going to be transmitted via an HTTP/1.1 proxy.
| |
| setAuthority | back to summary |
|---|---|
| public void setAuthority(final URIAuthority authority) Implements org. Doc from org. Sets authority of this request message.
| |
| setHeader | back to summary |
|---|---|
| public void setHeader(final String name, final Object value) Implements org. Doc from org. Overwrites the first header with the same name. The new header will be appended to the end of the list, if no header with the given name can be found.
| |
| setPath | back to summary |
|---|---|
| public void setPath(final String path) Implements org. Doc from org. Sets URI path of this request message.
| |
| setScheme | back to summary |
|---|---|
| public void setScheme(final String scheme) Implements org. Doc from org. Sets scheme of this request message.
| |
| setUri | back to summary |
|---|---|
| public void setUri(final URI requestUri) Implements org. Doc from org. Sets the full request URI of this request message. | |
| setVersion | back to summary |
|---|---|
| public void setVersion(final ProtocolVersion version) Implements org. Doc from org. Sets protocol version. For incoming messages it represents protocol version this message was transmitted with. For outgoing messages it represents a hint what protocol version should be used to transmit the message.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object. | |