bad.robot.http.apache
Class ApacheHttpClientBuilder

java.lang.Object
  extended by bad.robot.http.apache.ApacheHttpClientBuilder
All Implemented Interfaces:
Builder<org.apache.http.client.HttpClient>

public class ApacheHttpClientBuilder
extends Object
implements Builder<org.apache.http.client.HttpClient>


Constructor Summary
ApacheHttpClientBuilder()
           
 
Method Summary
static ApacheHttpClientBuilder anApacheClientWithShortTimeout()
           
 org.apache.http.client.HttpClient build()
           
protected  org.apache.http.params.HttpParams createHttpParametersViaNastyHackButBetterThanCopyAndPaste()
           
 ApacheHttpClientBuilder with(ApacheHttpAuthenticationCredentials login)
           
 ApacheHttpClientBuilder with(com.google.code.tempusfugit.temporal.Duration timeout)
           
 ApacheHttpClientBuilder with(Ssl ssl)
           
 ApacheHttpClientBuilder withProxy(org.apache.http.HttpHost proxy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApacheHttpClientBuilder

public ApacheHttpClientBuilder()
Method Detail

anApacheClientWithShortTimeout

public static ApacheHttpClientBuilder anApacheClientWithShortTimeout()

with

public ApacheHttpClientBuilder with(com.google.code.tempusfugit.temporal.Duration timeout)

withProxy

public ApacheHttpClientBuilder withProxy(org.apache.http.HttpHost proxy)

with

public ApacheHttpClientBuilder with(ApacheHttpAuthenticationCredentials login)

with

public ApacheHttpClientBuilder with(Ssl ssl)

build

public org.apache.http.client.HttpClient build()
Specified by:
build in interface Builder<org.apache.http.client.HttpClient>

createHttpParametersViaNastyHackButBetterThanCopyAndPaste

protected org.apache.http.params.HttpParams createHttpParametersViaNastyHackButBetterThanCopyAndPaste()


Copyright © 2012. All Rights Reserved.