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 HttpClientprivate BooleandoHandleResponse(CompletionListener completionListener, org.apache.http.HttpResponse response) booleansend(HttpRequest request, CompletionListener completionListener) booleansend(HttpRequest request, HttpRequest.Config config, CompletionListener completionListener) (package private) static org.apache.http.client.methods.HttpUriRequesttoApacheRequest(HttpRequest request, HttpRequest.Config config)
-
Field Details
-
log
The log for providingDEBUGfeedback about the process.
-
-
Constructor Details
-
ApacheHttpClient
ApacheHttpClient(Logger log)
-
-
Method Details
-
create
-
send
- Specified by:
sendin interfaceHttpClient- Throws:
IOException
-
send
public boolean send(HttpRequest request, HttpRequest.Config config, CompletionListener completionListener) throws IOException - Specified by:
sendin 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)
-