All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.drools.task.service.BaseMinaHandler Maven / Gradle / Ivy

There is a newer version: 5.1.1
Show newest version
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