Package org.openas2.cmd.processor
Class SocketCommandProcessor
- java.lang.Object
-
- org.openas2.cmd.processor.BaseCommandProcessor
-
- org.openas2.cmd.processor.SocketCommandProcessor
-
- All Implemented Interfaces:
CommandProcessor,Component,HasSchedule
public class SocketCommandProcessor extends BaseCommandProcessor
actual socket command processor takes commands from socket/port and passes them to the OpenAS2Server message format <command userid="abc" pasword="xyz"> the actual command </command>when inited the valid userid and password is passed, then as each command is processed the processCommand method verifies the two fields correctness
- Author:
- joseph mcverry
-
-
Constructor Summary
Constructors Constructor Description SocketCommandProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Component lifecycle hook.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
-
-
-
-
Method Detail
-
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
-
processCommand
public void processCommand() throws OpenAS2Exception- Specified by:
processCommandin interfaceCommandProcessor- Specified by:
processCommandin classBaseCommandProcessor- Throws:
OpenAS2Exception
-
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
-
-