public class AsyncRequestBuilder extends AbstractRequestBuilder<AsyncRequestProducer>
AsyncRequestProducer
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(AsyncEntityProducer)
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.
digest, getAuthority, getCharset, getMethod, getParameters, getPath, getScheme, getUri, isAbsoluteRequestUri
digest, getFirstHeader, getFirstHeaders, getHeaders, getHeaders, getLastHeader, getVersion, setHeaders
public static AsyncRequestBuilder create(String method)
public static AsyncRequestBuilder get()
public static AsyncRequestBuilder get(URI uri)
public static AsyncRequestBuilder get(String uri)
public static AsyncRequestBuilder head()
public static AsyncRequestBuilder head(URI uri)
public static AsyncRequestBuilder head(String uri)
public static AsyncRequestBuilder patch()
public static AsyncRequestBuilder patch(URI uri)
public static AsyncRequestBuilder patch(String uri)
public static AsyncRequestBuilder post()
public static AsyncRequestBuilder post(URI uri)
public static AsyncRequestBuilder post(String uri)
public static AsyncRequestBuilder put()
public static AsyncRequestBuilder put(URI uri)
public static AsyncRequestBuilder put(String uri)
public static AsyncRequestBuilder delete()
public static AsyncRequestBuilder delete(URI uri)
public static AsyncRequestBuilder delete(String uri)
public static AsyncRequestBuilder trace()
public static AsyncRequestBuilder trace(URI uri)
public static AsyncRequestBuilder trace(String uri)
public static AsyncRequestBuilder options()
public static AsyncRequestBuilder options(URI uri)
public static AsyncRequestBuilder options(String uri)
public AsyncRequestBuilder setVersion(ProtocolVersion version)
setVersion
in class AbstractRequestBuilder<AsyncRequestProducer>
public AsyncRequestBuilder setUri(URI uri)
setUri
in class AbstractRequestBuilder<AsyncRequestProducer>
public AsyncRequestBuilder setUri(String uri)
setUri
in class AbstractRequestBuilder<AsyncRequestProducer>
public AsyncRequestBuilder setScheme(String scheme)
setScheme
in class AbstractRequestBuilder<AsyncRequestProducer>
public AsyncRequestBuilder setAuthority(URIAuthority authority)
setAuthority
in class AbstractRequestBuilder<AsyncRequestProducer>
public AsyncRequestBuilder setHttpHost(HttpHost httpHost)
setHttpHost
in class AbstractRequestBuilder<AsyncRequestProducer>
public AsyncRequestBuilder setPath(String path)
setPath
in class AbstractRequestBuilder<AsyncRequestProducer>
public AsyncRequestBuilder setHeaders(Header... headers)
setHeaders
in class AbstractRequestBuilder<AsyncRequestProducer>
public AsyncRequestBuilder addHeader(Header header)
addHeader
in class AbstractRequestBuilder<AsyncRequestProducer>
public AsyncRequestBuilder addHeader(String name, String value)
addHeader
in class AbstractRequestBuilder<AsyncRequestProducer>
public AsyncRequestBuilder removeHeader(Header header)
removeHeader
in class AbstractRequestBuilder<AsyncRequestProducer>
public AsyncRequestBuilder removeHeaders(String name)
removeHeaders
in class AbstractRequestBuilder<AsyncRequestProducer>
public AsyncRequestBuilder setHeader(Header header)
setHeader
in class AbstractRequestBuilder<AsyncRequestProducer>
public AsyncRequestBuilder setHeader(String name, String value)
setHeader
in class AbstractRequestBuilder<AsyncRequestProducer>
public AsyncRequestBuilder setCharset(Charset charset)
setCharset
in class AbstractRequestBuilder<AsyncRequestProducer>
public AsyncRequestBuilder addParameter(NameValuePair nvp)
addParameter
in class AbstractRequestBuilder<AsyncRequestProducer>
public AsyncRequestBuilder addParameter(String name, String value)
addParameter
in class AbstractRequestBuilder<AsyncRequestProducer>
public AsyncRequestBuilder addParameters(NameValuePair... nvps)
addParameters
in class AbstractRequestBuilder<AsyncRequestProducer>
public AsyncRequestBuilder setAbsoluteRequestUri(boolean absoluteRequestUri)
setAbsoluteRequestUri
in class AbstractRequestBuilder<AsyncRequestProducer>
public AsyncEntityProducer getEntity()
public AsyncRequestBuilder setEntity(AsyncEntityProducer entityProducer)
public AsyncRequestBuilder setEntity(String content, ContentType contentType)
public AsyncRequestBuilder setEntity(String content)
public AsyncRequestBuilder setEntity(byte[] content, ContentType contentType)
public AsyncRequestProducer build()
build
in class AbstractMessageBuilder<AsyncRequestProducer>
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.