public class AsyncRequestBuilder extends Object
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.
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 get(HttpHost host, String path)
public static AsyncRequestBuilder head()
public static AsyncRequestBuilder head(URI uri)
public static AsyncRequestBuilder head(String uri)
public static AsyncRequestBuilder head(HttpHost host, String path)
public static AsyncRequestBuilder patch()
public static AsyncRequestBuilder patch(URI uri)
public static AsyncRequestBuilder patch(String uri)
public static AsyncRequestBuilder patch(HttpHost host, String path)
public static AsyncRequestBuilder post()
public static AsyncRequestBuilder post(URI uri)
public static AsyncRequestBuilder post(String uri)
public static AsyncRequestBuilder post(HttpHost host, String path)
public static AsyncRequestBuilder put()
public static AsyncRequestBuilder put(URI uri)
public static AsyncRequestBuilder put(String uri)
public static AsyncRequestBuilder put(HttpHost host, String path)
public static AsyncRequestBuilder delete()
public static AsyncRequestBuilder delete(URI uri)
public static AsyncRequestBuilder delete(String uri)
public static AsyncRequestBuilder delete(HttpHost host, String path)
public static AsyncRequestBuilder trace()
public static AsyncRequestBuilder trace(URI uri)
public static AsyncRequestBuilder trace(String uri)
public static AsyncRequestBuilder trace(HttpHost host, String path)
public static AsyncRequestBuilder options()
public static AsyncRequestBuilder options(URI uri)
public static AsyncRequestBuilder options(String uri)
public static AsyncRequestBuilder options(HttpHost host, String path)
public AsyncRequestBuilder setCharset(Charset charset)
public Charset getCharset()
public String getMethod()
public URI getUri()
public AsyncRequestBuilder setUri(URI uri)
public AsyncRequestBuilder setUri(String uri)
public ProtocolVersion getVersion()
public AsyncRequestBuilder setVersion(ProtocolVersion version)
public AsyncRequestBuilder addHeader(Header header)
public AsyncRequestBuilder addHeader(String name, String value)
public AsyncRequestBuilder removeHeader(Header header)
public AsyncRequestBuilder removeHeaders(String name)
public AsyncRequestBuilder setHeader(Header header)
public AsyncRequestBuilder setHeader(String name, String value)
public List<NameValuePair> getParameters()
public AsyncRequestBuilder addParameter(NameValuePair nvp)
public AsyncRequestBuilder addParameter(String name, String value)
public AsyncRequestBuilder addParameters(NameValuePair... nvps)
public RequestConfig getConfig()
public AsyncRequestBuilder setConfig(RequestConfig config)
public AsyncEntityProducer getEntity()
public AsyncRequestBuilder setEntity(AsyncEntityProducer entityProducer)
public AsyncRequestBuilder setEntity(String content, ContentType contentType)
public AsyncRequestBuilder setEntity(byte[] content, ContentType contentType)
public AsyncRequestProducer build()
Copyright © 1999–2018 The Apache Software Foundation. All rights reserved.