bad.robot.http
Interface CommonHttpClient

All Superinterfaces:
HttpClient

public interface CommonHttpClient
extends HttpClient

The common configuration interface for all HttpClient implementations. Clients may or may not implement the various configuration parameters and they may or may not take affect after actual HttpClient calls. For example, you might set a timeout using the with(HttpTimeout) and then call the HttpClient.get(java.net.URL) to perform a HTTP GET. The underlying HTTP client implementation should respect the timeout configuration but is free to ignore subsequent calls to set the timeout (ie, implementations may choose to lazy load the underlying client).


Method Summary
 CommonHttpClient with(AutomaticRedirectHandling handleRedirects)
           
 CommonHttpClient with(HttpTimeout timeout)
           
 CommonHttpClient with(Proxy proxy)
           
 CommonHttpClient with(String username, String password)
           
 CommonHttpClient withBasicAuth(URL url)
           
 CommonHttpClient withoutSsl()
           
 CommonHttpClient withTrustingSsl()
           
 
Methods inherited from interface bad.robot.http.HttpClient
delete, get, get, options, post, put, shutdown
 

Method Detail

with

CommonHttpClient with(String username,
                      String password)

withoutSsl

CommonHttpClient withoutSsl()

withTrustingSsl

CommonHttpClient withTrustingSsl()

withBasicAuth

CommonHttpClient withBasicAuth(URL url)

with

CommonHttpClient with(AutomaticRedirectHandling handleRedirects)

with

CommonHttpClient with(Proxy proxy)

with

CommonHttpClient with(HttpTimeout timeout)


Copyright © 2012. All Rights Reserved.