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

org.openas2.cmd.CommandManager Maven / Gradle / Ivy

Go to download

Open source implementation of the AS2 standard for signed encrypted and compressed document transfer

There is a newer version: 2.10.1
Show newest version
package org.openas2.cmd;

import java.util.ArrayList;
import java.util.List;

import org.openas2.OpenAS2Exception;
import org.openas2.cmd.processor.BaseCommandProcessor;

/**
 * command calls the registered command processors
 *
 * @author joseph mcverry
 */
public class CommandManager {

    private List processors = new ArrayList();

    public void addProcessor(BaseCommandProcessor processor)
    {
        processors.add(processor);
    }

    public void registerCommands(CommandRegistry reg) throws OpenAS2Exception
    {
        for (BaseCommandProcessor processor : processors)
        {
            processor.addCommands(reg);
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy