Class ApacheHttpClient
java.lang.Object
org.eclipse.cbi.maven.http.apache.ApacheHttpClient
- All Implemented Interfaces:
HttpClient
An HttpClient implementation based on Apache HttpClient.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpClient
private Boolean
doHandleResponse
(CompletionListener completionListener, org.apache.http.HttpResponse response) boolean
send
(HttpRequest request, CompletionListener completionListener) boolean
send
(HttpRequest request, HttpRequest.Config config, CompletionListener completionListener) (package private) static org.apache.http.client.methods.HttpUriRequest
toApacheRequest
(HttpRequest request, HttpRequest.Config config)
-
Field Details
-
log
The log for providingDEBUG
feedback about the process.
-
-
Constructor Details
-
ApacheHttpClient
ApacheHttpClient(Logger log)
-
-
Method Details
-
create
-
send
- Specified by:
send
in interfaceHttpClient
- Throws:
IOException
-
send
public boolean send(HttpRequest request, HttpRequest.Config config, CompletionListener completionListener) throws IOException - Specified by:
send
in interfaceHttpClient
- Throws:
IOException
-
doHandleResponse
private Boolean doHandleResponse(CompletionListener completionListener, org.apache.http.HttpResponse response) throws IOException - Throws:
IOException
-
toApacheRequest
static org.apache.http.client.methods.HttpUriRequest toApacheRequest(HttpRequest request, HttpRequest.Config config)
-