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(com.google.code.tempusfugit.temporal.Duration)
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).
with
CommonHttpClient with(com.google.code.tempusfugit.temporal.Duration timeout)
with
CommonHttpClient with(String username,
String password)
withoutSsl
CommonHttpClient withoutSsl()
withProxy
CommonHttpClient withProxy(URL url)
Copyright © 2012. All Rights Reserved.