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()

Method Summary
 SimpleAsyncHttpClient.DerivedBuilder addBodyPart(Part part)
           
 SimpleAsyncHttpClient.DerivedBuilder addCookie(Cookie cookie)
           
 SimpleAsyncHttpClient.DerivedBuilder addHeader(String name, String value)
           
 SimpleAsyncHttpClient.DerivedBuilder addParameter(String key, String value)
           
 SimpleAsyncHttpClient.DerivedBuilder addQueryParameter(String name, String value)
           
 SimpleAsyncHttpClient build()
           
 SimpleAsyncHttpClient.DerivedBuilder setFollowRedirects(boolean followRedirects)
           
 SimpleAsyncHttpClient.DerivedBuilder setHeader(String name, String value)
           
 SimpleAsyncHttpClient.DerivedBuilder setHeaders(FluentCaseInsensitiveStringsMap headers)
           
 SimpleAsyncHttpClient.DerivedBuilder setHeaders(Map<String,Collection<String>> headers)
           
 SimpleAsyncHttpClient.DerivedBuilder setParameters(FluentStringsMap parameters)
           
 SimpleAsyncHttpClient.DerivedBuilder setParameters(Map<String,Collection<String>> parameters)
           
 SimpleAsyncHttpClient.DerivedBuilder setResumableDownload(boolean resume)
           
 SimpleAsyncHttpClient.DerivedBuilder setUrl(String url)
           
 SimpleAsyncHttpClient.DerivedBuilder setVirtualHost(String virtualHost)
           
 

Method Detail

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.