HttpUriRequest instances.
Please note that this class treats parameters differently depending on composition
of the request: if the request has a content entity explicitly set with
setEntity(org. or it is not an entity enclosing method
(such as POST or PUT), parameters will be added to the query component of the request URI.
Otherwise, parameters will be added as a URL encoded entity.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | RequestBuilder.InternalEntityEclosingRequest
Deprecated
as a consequence of
HttpEntityEnclosingRequestBase being deprecated.
|
| pack-priv static class | RequestBuilder.InternalRequest
Deprecated
as a consequence of
HttpRequestBase being deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
| private Charset | |
| private RequestConfig | |
| private HttpEntity | |
| private HeaderGroup | |
| private String | |
| private List | |
| private URI | |
| private ProtocolVersion |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv | |
| pack-priv |
| charset | back to summary |
|---|---|
| private Charset charset | |
| config | back to summary |
|---|---|
| private RequestConfig config | |
| entity | back to summary |
|---|---|
| private HttpEntity entity | |
| headerGroup | back to summary |
|---|---|
| private HeaderGroup headerGroup | |
| method | back to summary |
|---|---|
| private String method | |
| parameters | back to summary |
|---|---|
| private List<NameValuePair> parameters | |
| uri | back to summary |
|---|---|
| private URI uri | |
| version | back to summary |
|---|---|
| private ProtocolVersion version | |
| RequestBuilder | back to summary |
|---|---|
| pack-priv RequestBuilder(final String method) | |
| RequestBuilder | back to summary |
|---|---|
| pack-priv RequestBuilder(final String method, final URI uri) | |
| RequestBuilder | back to summary |
|---|---|
| pack-priv RequestBuilder(final String method, final String uri) | |
| RequestBuilder | back to summary |
|---|---|
| pack-priv RequestBuilder() | |
| addHeader | back to summary |
|---|---|
| public RequestBuilder addHeader(final Header header) | |
| addHeader | back to summary |
|---|---|
| public RequestBuilder addHeader(final String name, final String value) | |
| addParameter | back to summary |
|---|---|
| public RequestBuilder addParameter(final NameValuePair nvp) | |
| addParameter | back to summary |
|---|---|
| public RequestBuilder addParameter(final String name, final String value) | |
| addParameters | back to summary |
|---|---|
| public RequestBuilder addParameters(final NameValuePair... nvps) | |
| build | back to summary |
|---|---|
| public HttpUriRequest build() | |
| copy | back to summary |
|---|---|
| public static RequestBuilder copy(final HttpRequest request) | |
| create | back to summary |
|---|---|
| public static RequestBuilder create(final String method) | |
| delete | back to summary |
|---|---|
| public static RequestBuilder delete() | |
| delete | back to summary |
|---|---|
public static RequestBuilder delete(final URI uri)
| |
| delete | back to summary |
|---|---|
public static RequestBuilder delete(final String uri)
| |
| doCopy | back to summary |
|---|---|
| private RequestBuilder doCopy(final HttpRequest request) | |
| get | back to summary |
|---|---|
| public static RequestBuilder get() | |
| get | back to summary |
|---|---|
public static RequestBuilder get(final URI uri)
| |
| get | back to summary |
|---|---|
public static RequestBuilder get(final String uri)
| |
| getCharset | back to summary |
|---|---|
public Charset getCharset()
| |
| getConfig | back to summary |
|---|---|
| public RequestConfig getConfig() | |
| getEntity | back to summary |
|---|---|
| public HttpEntity getEntity() | |
| getFirstHeader | back to summary |
|---|---|
| public Header getFirstHeader(final String name) | |
| getHeaders | back to summary |
|---|---|
| public Header[] getHeaders(final String name) | |
| getLastHeader | back to summary |
|---|---|
| public Header getLastHeader(final String name) | |
| getMethod | back to summary |
|---|---|
| public String getMethod() | |
| getParameters | back to summary |
|---|---|
| public List | |
| getUri | back to summary |
|---|---|
| public URI getUri() | |
| getVersion | back to summary |
|---|---|
| public ProtocolVersion getVersion() | |
| head | back to summary |
|---|---|
| public static RequestBuilder head() | |
| head | back to summary |
|---|---|
public static RequestBuilder head(final URI uri)
| |
| head | back to summary |
|---|---|
public static RequestBuilder head(final String uri)
| |
| options | back to summary |
|---|---|
| public static RequestBuilder options() | |
| options | back to summary |
|---|---|
public static RequestBuilder options(final URI uri)
| |
| options | back to summary |
|---|---|
public static RequestBuilder options(final String uri)
| |
| patch | back to summary |
|---|---|
public static RequestBuilder patch()
| |
| patch | back to summary |
|---|---|
public static RequestBuilder patch(final URI uri)
| |
| patch | back to summary |
|---|---|
public static RequestBuilder patch(final String uri)
| |
| post | back to summary |
|---|---|
| public static RequestBuilder post() | |
| post | back to summary |
|---|---|
public static RequestBuilder post(final URI uri)
| |
| post | back to summary |
|---|---|
public static RequestBuilder post(final String uri)
| |
| put | back to summary |
|---|---|
| public static RequestBuilder put() | |
| put | back to summary |
|---|---|
public static RequestBuilder put(final URI uri)
| |
| put | back to summary |
|---|---|
public static RequestBuilder put(final String uri)
| |
| removeHeader | back to summary |
|---|---|
| public RequestBuilder removeHeader(final Header header) | |
| removeHeaders | back to summary |
|---|---|
| public RequestBuilder removeHeaders(final String name) | |
| setCharset | back to summary |
|---|---|
public RequestBuilder setCharset(final Charset charset)
| |
| setConfig | back to summary |
|---|---|
| public RequestBuilder setConfig(final RequestConfig config) | |
| setEntity | back to summary |
|---|---|
| public RequestBuilder setEntity(final HttpEntity entity) | |
| setHeader | back to summary |
|---|---|
| public RequestBuilder setHeader(final Header header) | |
| setHeader | back to summary |
|---|---|
| public RequestBuilder setHeader(final String name, final String value) | |
| setUri | back to summary |
|---|---|
| public RequestBuilder setUri(final URI uri) | |
| setUri | back to summary |
|---|---|
| public RequestBuilder setUri(final String uri) | |
| setVersion | back to summary |
|---|---|
| public RequestBuilder setVersion(final ProtocolVersion version) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| trace | back to summary |
|---|---|
| public static RequestBuilder trace() | |
| trace | back to summary |
|---|---|
public static RequestBuilder trace(final URI uri)
| |
| trace | back to summary |
|---|---|
public static RequestBuilder trace(final String uri)
| |
Deprecated
as a consequence of HttpEntityEnclosingRequestBase being deprecated. See corresponding docs for further information.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | getMethod()
Implements abstract org. Implements org. GET,
PUT, POST, or other.
|
| method | back to summary |
|---|---|
| private final String method | |
| InternalEntityEclosingRequest | back to summary |
|---|---|
| pack-priv InternalEntityEclosingRequest(final String method) | |
| getMethod | back to summary |
|---|---|
| public String getMethod() Implements abstract org. Implements org. Doc from org. Returns the HTTP method this request uses, such as
| |
Deprecated
as a consequence of HttpRequestBase being deprecated. See corresponding docs for further information.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | getMethod()
Implements abstract org. Implements org. GET,
PUT, POST, or other.
|
| method | back to summary |
|---|---|
| private final String method | |
| InternalRequest | back to summary |
|---|---|
| pack-priv InternalRequest(final String method) | |
| getMethod | back to summary |
|---|---|
| public String getMethod() Implements abstract org. Implements org. Doc from org. Returns the HTTP method this request uses, such as
| |