CommandProcessor, Component, HasScheduleSocketCommandProcessor, StreamCommandProcessorpublic abstract class BaseCommandProcessor extends Object implements CommandProcessor, Component, HasSchedule
| Constructor | Description |
|---|---|
BaseCommandProcessor() |
| Modifier and Type | Method | 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 CommandProcessorpublic String getName()
Componentpublic void init(Session session, Map<String,String> parameters) throws OpenAS2Exception
Componentinit in interface Componentsession - the component uses this object to access other componentsparameters - configuration values for the componentOpenAS2Exception - If an error occurs while initializing the componentSessionpublic Map<String,String> getParameters()
ComponentgetParameters in interface Componentpublic Session getSession()
ComponentgetSession in interface Componentpublic abstract void processCommand()
throws Exception
processCommand in interface CommandProcessorExceptionpublic void addCommands(CommandRegistry reg)
addCommands in interface CommandProcessorpublic void terminate()
throws Exception
terminate in interface CommandProcessorExceptionpublic void destroy()
throws Exception
ComponentComponent requires a destroy function this method can be used.destroy in interface ComponentException - Something went wrongComponent.init(Session, Map),
Sessionpublic void schedule(ScheduledExecutorService executor) throws OpenAS2Exception
schedule in interface HasScheduleOpenAS2ExceptionCopyright © 2018. All rights reserved.