Class BaseCommunicator
- java.lang.Object
-
- com.taskadapter.redmineapi.internal.comm.BaseCommunicator
-
- All Implemented Interfaces:
Communicator<org.apache.http.HttpResponse>
public class BaseCommunicator extends java.lang.Object implements Communicator<org.apache.http.HttpResponse>
-
-
Constructor Summary
Constructors Constructor Description BaseCommunicator(org.apache.http.client.HttpClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> R
sendRequest(org.apache.http.HttpRequest request, ContentHandler<org.apache.http.HttpResponse,R> handler)
Performs a request.
-
-
-
Method Detail
-
sendRequest
public <R> R sendRequest(org.apache.http.HttpRequest request, ContentHandler<org.apache.http.HttpResponse,R> handler) throws RedmineException
Description copied from interface:Communicator
Performs a request.- Specified by:
sendRequest
in interfaceCommunicator<org.apache.http.HttpResponse>
- Returns:
- the response body.
- Throws:
RedmineException
-
-