com.taskadapter.redmineapi.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 Show documentation
Show all versions of redmine-java-api Show documentation
Free open-source Java API for Redmine and Chiliproject bug/task management systems.
This project was originally a part of Task Adapter application (http://www.taskadapter.com)
and then was open-sourced.
The newest version!
package com.taskadapter.redmineapi.internal.comm;
import org.apache.http.HttpRequest;
import com.taskadapter.redmineapi.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);
}
}