public class LoggingHttpClient extends Object implements HttpClient
Constructor and Description |
---|
LoggingHttpClient(HttpClient delegate,
org.apache.log4j.Logger logger) |
Modifier and Type | Method and Description |
---|---|
HttpResponse |
delete(URL url) |
HttpResponse |
get(URL url) |
HttpResponse |
get(URL url,
Headers headers) |
HttpResponse |
options(URL url) |
HttpResponse |
post(URL url,
HttpPost message) |
HttpResponse |
put(URL url,
HttpPut message) |
void |
shutdown() |
public LoggingHttpClient(HttpClient delegate, org.apache.log4j.Logger logger)
public HttpResponse get(URL url) throws HttpException
get
in interface HttpClient
HttpException
public HttpResponse get(URL url, Headers headers) throws HttpException
get
in interface HttpClient
HttpException
public HttpResponse post(URL url, HttpPost message) throws HttpException
post
in interface HttpClient
HttpException
public HttpResponse put(URL url, HttpPut message) throws HttpException
put
in interface HttpClient
HttpException
public HttpResponse delete(URL url) throws HttpException
delete
in interface HttpClient
HttpException
public HttpResponse options(URL url) throws HttpException
options
in interface HttpClient
HttpException
public void shutdown()
shutdown
in interface HttpClient
Copyright © 2013. All rights reserved.