com.github.kristofa.test.http.client
Class ApacheHttpClientImpl
java.lang.Object
com.github.kristofa.test.http.client.ApacheHttpClientImpl
- All Implemented Interfaces:
- HttpClient
public class ApacheHttpClientImpl
- extends Object
- implements HttpClient
HttpClient implementation that uses Apache HTTP
client as 'lower level' library.
- Author:
- kristof
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApacheHttpClientImpl
public ApacheHttpClientImpl()
execute
public HttpClientResponse<InputStream> execute(FullHttpRequest request)
throws HttpRequestException
- Executes a HTTP request and returns response.
- Specified by:
execute in interface HttpClient
- Parameters:
request - HTTP request.
- Returns:
- Response.
- Throws:
HttpRequestException - In case request failed.
Copyright © 2014. All Rights Reserved.