org.redmine.ta.internal.comm.BasicSimplifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redmine-java-api-nodep Show documentation
Show all versions of redmine-java-api-nodep Show documentation
Free open-source Java API for Redmine and Chiliproject bug/task management systems.
The newest version!
package org.redmine.ta.internal.comm;
import org.apache.http.HttpRequest;
import org.redmine.ta.RedmineException;
/**
* Basic transport simplifier.
*
* @author maxkar
*
*/
final class BasicSimplifier implements SimpleCommunicator {
private final ContentHandler contentHandler;
private final Communicator peer;
public BasicSimplifier(ContentHandler contentHandler,
Communicator peer) {
this.contentHandler = contentHandler;
this.peer = peer;
}
@Override
public K sendRequest(HttpRequest request) throws RedmineException {
return peer.sendRequest(request, contentHandler);
}
}