com.taskadapter.redmineapi.internal.comm.ComposingHandler 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 com.taskadapter.redmineapi.RedmineException;
/**
* Composing content handler.
*
* @author maxkar
*
*/
final class ComposingHandler implements ContentHandler {
private final ContentHandler outer;
private final ContentHandler inner;
public ComposingHandler(ContentHandler outer,
ContentHandler inner) {
super();
this.outer = outer;
this.inner = inner;
}
@Override
public R processContent(K content) throws RedmineException {
return outer.processContent(inner.processContent(content));
}
}