public abstract class BaseCommandProcessor extends Object implements CommandProcessor, Component, HasSchedule
Constructor and Description |
---|
BaseCommandProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
addCommands(CommandRegistry reg) |
void |
destroy()
Component lifecycle hook.
|
List<Command> |
getCommands() |
String |
getName()
Returns a name for the component.
|
Map<String,String> |
getParameters()
Returns the parameters used to initialize this Component, and can also be used
to modify parameters.
|
Session |
getSession()
Returns the Session used to initialize this Component.
|
void |
init(Session session,
Map<String,String> parameters)
Component lifecycle hook.
|
abstract void |
processCommand() |
void |
schedule(ScheduledExecutorService executor) |
void |
terminate() |
public List<Command> getCommands()
getCommands
in interface CommandProcessor
public String getName()
Component
public void init(Session session, Map<String,String> parameters) throws OpenAS2Exception
Component
init
in interface Component
session
- the component uses this object to access other componentsparameters
- configuration values for the componentOpenAS2Exception
- If an error occurs while initializing the componentSession
public Map<String,String> getParameters()
Component
getParameters
in interface Component
public Session getSession()
Component
getSession
in interface Component
public abstract void processCommand() throws Exception
processCommand
in interface CommandProcessor
Exception
public void addCommands(CommandRegistry reg)
addCommands
in interface CommandProcessor
public void terminate() throws Exception
terminate
in interface CommandProcessor
Exception
public void destroy() throws Exception
Component
Component
requires a destroy function this method can be used.destroy
in interface Component
Exception
- Something went wrongComponent.init(Session, Map)
,
Session
public void schedule(ScheduledExecutorService executor) throws OpenAS2Exception
schedule
in interface HasSchedule
OpenAS2Exception
Copyright © 2018. All rights reserved.