bad.robot.http.apache
Class ApacheHttpClient

java.lang.Object
  extended by bad.robot.http.apache.ApacheHttpClient
All Implemented Interfaces:
HttpClient

public class ApacheHttpClient
extends Object
implements HttpClient


Constructor Summary
ApacheHttpClient(Builder<org.apache.http.client.HttpClient> builder)
           
 
Method Summary
 HttpResponse delete(URL url)
           
 HttpResponse get(URL url)
           
 HttpResponse get(URL url, Headers headers)
           
 HttpResponse post(URL url, HttpPost message)
           
 HttpResponse put(URL url, HttpPut message)
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApacheHttpClient

public ApacheHttpClient(Builder<org.apache.http.client.HttpClient> builder)
Method Detail

get

public HttpResponse get(URL url,
                        Headers headers)
                 throws HttpException
Specified by:
get in interface HttpClient
Throws:
HttpException

get

public HttpResponse get(URL url)
                 throws HttpException
Specified by:
get in interface HttpClient
Throws:
HttpException

post

public HttpResponse post(URL url,
                         HttpPost message)
                  throws HttpException
Specified by:
post in interface HttpClient
Throws:
HttpException

put

public HttpResponse put(URL url,
                        HttpPut message)
Specified by:
put in interface HttpClient

delete

public HttpResponse delete(URL url)
                    throws HttpException
Specified by:
delete in interface HttpClient
Throws:
HttpException

shutdown

public void shutdown()
Specified by:
shutdown in interface HttpClient


Copyright © 2012. All Rights Reserved.