public class MultiCommand extends BaseCommand
PARAM_DESCRIPTION, PARAM_NAME, PARAM_USAGE
Constructor and Description |
---|
MultiCommand() |
Modifier and Type | Method and Description |
---|---|
CommandResult |
execute(Object[] params) |
CommandResult |
execute(String name,
Object[] params) |
Command |
getCommand(String name) |
List<Command> |
getCommands() |
String |
getDefaultDescription() |
String |
getDefaultName() |
String |
getDefaultUsage() |
String |
getDescription(String name) |
String |
getUsage(String name) |
void |
init(Session session,
Map<String,String> parameters)
Component lifecycle hook.
|
boolean |
supports(String name) |
getDescription, getName, getUsage, setDescription, setName, setUsage
destroy, getParameter, getParameter, getParameterInt, getParameters, getSession, setParameter, setParameter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSession
destroy, getParameters
public void init(Session session, Map<String,String> parameters) throws OpenAS2Exception
Component
init
in interface Component
init
in class BaseCommand
session
- the component uses this object to access other componentsparameters
- configuration values for the componentOpenAS2Exception
- If an error occurs while initializing the componentSession
public CommandResult execute(Object[] params)
execute
in interface Command
execute
in class BaseCommand
public CommandResult execute(String name, Object[] params) throws OpenAS2Exception
OpenAS2Exception
public boolean supports(String name)
public String getDefaultName()
getDefaultName
in class BaseCommand
public String getDefaultDescription()
getDefaultDescription
in class BaseCommand
public String getDefaultUsage()
getDefaultUsage
in class BaseCommand
Copyright © 2018. All rights reserved.