bad.robot.http.listener
Class LoggingHttpClient

java.lang.Object
  extended by bad.robot.http.listener.LoggingHttpClient
All Implemented Interfaces:
HttpClient

public class LoggingHttpClient
extends Object
implements HttpClient


Constructor Summary
LoggingHttpClient(HttpClient delegate, org.apache.log4j.Logger logger)
           
 
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

LoggingHttpClient

public LoggingHttpClient(HttpClient delegate,
                         org.apache.log4j.Logger logger)
Method Detail

get

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

get

public HttpResponse get(URL url,
                        Headers headers)
                 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)
                 throws HttpException
Specified by:
put in interface HttpClient
Throws:
HttpException

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.