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