org.drools.task.service.BaseMinaHandler Maven / Gradle / Ivy
package org.drools.task.service;
import java.util.HashMap;
import java.util.Map;
import org.apache.mina.core.service.IoHandlerAdapter;
public class BaseMinaHandler extends IoHandlerAdapter
{
protected Map responseHandlers;
public BaseMinaHandler() {
responseHandlers = new HashMap();
}
public void addResponseHandler(int id, ResponseHandler responseHandler) {
responseHandlers.put( id, responseHandler );
}
public static interface ResponseHandler {
public void setError(String error);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy