com.ning.http.client
Interface SimpleAsyncHttpClient.DerivedBuilder
- All Known Implementing Classes:
- SimpleAsyncHttpClient.Builder
- Enclosing class:
- SimpleAsyncHttpClient
public static interface SimpleAsyncHttpClient.DerivedBuilder
This interface contains possible configuration changes for a derived SimpleAsyncHttpClient.
- See Also:
SimpleAsyncHttpClient.derive()
setFollowRedirects
SimpleAsyncHttpClient.DerivedBuilder setFollowRedirects(boolean followRedirects)
setVirtualHost
SimpleAsyncHttpClient.DerivedBuilder setVirtualHost(String virtualHost)
setUrl
SimpleAsyncHttpClient.DerivedBuilder setUrl(String url)
setParameters
SimpleAsyncHttpClient.DerivedBuilder setParameters(FluentStringsMap parameters)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
setParameters
SimpleAsyncHttpClient.DerivedBuilder setParameters(Map<String,Collection<String>> parameters)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
setHeaders
SimpleAsyncHttpClient.DerivedBuilder setHeaders(Map<String,Collection<String>> headers)
setHeaders
SimpleAsyncHttpClient.DerivedBuilder setHeaders(FluentCaseInsensitiveStringsMap headers)
setHeader
SimpleAsyncHttpClient.DerivedBuilder setHeader(String name,
String value)
addQueryParameter
SimpleAsyncHttpClient.DerivedBuilder addQueryParameter(String name,
String value)
addParameter
SimpleAsyncHttpClient.DerivedBuilder addParameter(String key,
String value)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
addHeader
SimpleAsyncHttpClient.DerivedBuilder addHeader(String name,
String value)
addCookie
SimpleAsyncHttpClient.DerivedBuilder addCookie(Cookie cookie)
addBodyPart
SimpleAsyncHttpClient.DerivedBuilder addBodyPart(Part part)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
setResumableDownload
SimpleAsyncHttpClient.DerivedBuilder setResumableDownload(boolean resume)
build
SimpleAsyncHttpClient build()
Copyright © 2011. All Rights Reserved.