Package org.openas2.cmd.processor
Class RestCommandProcessor
- java.lang.Object
-
- org.openas2.cmd.processor.BaseCommandProcessor
-
- org.openas2.cmd.processor.RestCommandProcessor
-
- All Implemented Interfaces:
CommandProcessor,Component,HasSchedule
public class RestCommandProcessor extends BaseCommandProcessor
- Author:
- javier
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringBASE_URI
-
Constructor Summary
Constructors Constructor Description RestCommandProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Component lifecycle hook.CommandResultfeedCommand(java.lang.String commandText, java.util.List<java.lang.String> params)voidinit(Session session, java.util.Map<java.lang.String,java.lang.String> parameters)Component lifecycle hook.voidprocessCommand()-
Methods inherited from class org.openas2.cmd.processor.BaseCommandProcessor
addCommands, getCommands, getName, getParameters, getSession, schedule, terminate
-
-
-
-
Field Detail
-
BASE_URI
public static final java.lang.String BASE_URI
- See Also:
- Constant Field Values
-
-
Method Detail
-
processCommand
public void processCommand() throws java.lang.Exception- Specified by:
processCommandin interfaceCommandProcessor- Specified by:
processCommandin classBaseCommandProcessor- Throws:
java.lang.Exception
-
feedCommand
public CommandResult feedCommand(java.lang.String commandText, java.util.List<java.lang.String> params) throws java.lang.Exception
- Throws:
java.lang.Exception
-
destroy
public void destroy() throws java.lang.ExceptionDescription copied from interface:ComponentComponent lifecycle hook. If lifecycle ofComponentrequires a destroy function this method can be used.- Specified by:
destroyin interfaceComponent- Overrides:
destroyin classBaseCommandProcessor- Throws:
java.lang.Exception- Something went wrong- See Also:
Component.init(Session, Map),Session
-
init
public void init(Session session, java.util.Map<java.lang.String,java.lang.String> parameters) throws OpenAS2Exception
Description copied from interface:ComponentComponent lifecycle hook. After creating a Component object, this method should be called to set any parameters used by the component. Component implementations typically have required parameter checking and code to start timers and threads within this method.- Specified by:
initin interfaceComponent- Overrides:
initin classBaseCommandProcessor- Parameters:
session- the component uses this object to access other componentsparameters- configuration values for the component- Throws:
OpenAS2Exception- If an error occurs while initializing the component- See Also:
Session
-
-