
org.openas2.processor.DefaultProcessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openas2-server Show documentation
Show all versions of openas2-server Show documentation
Open source implementation of the AS2 standard for signed encrypted and compressed document transfer
package org.openas2.processor;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang3.ClassUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.openas2.BaseComponent;
import org.openas2.OpenAS2Exception;
import org.openas2.message.Message;
public class DefaultProcessor extends BaseComponent implements Processor {
private List modules = new ArrayList();
private Log logger = LogFactory.getLog(DefaultProcessor.class.getSimpleName());
public List getActiveModules()
{
List activeMods = new ArrayList();
Iterator moduleIt = getModules().iterator();
ProcessorModule procMod;
while (moduleIt.hasNext())
{
procMod = moduleIt.next();
if (procMod instanceof ActiveModule)
{
activeMods.add((ActiveModule)procMod);
}
}
return activeMods;
}
public List getModules()
{
return modules;
}
public void handle(String action, Message msg, Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy