public class SocketCommandProcessor extends BaseCommandProcessor
when inited the valid userid and password is passed, then as each command is processed the processCommand method verifies the two fields correctness
Constructor and Description |
---|
SocketCommandProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Component lifecycle hook.
|
void |
init(Session session,
Map<String,String> parameters)
Component lifecycle hook.
|
void |
processCommand() |
addCommands, getCommands, getName, getParameters, getSession, schedule, terminate
public void init(Session session, Map<String,String> parameters) throws OpenAS2Exception
Component
init
in interface Component
init
in class BaseCommandProcessor
session
- the component uses this object to access other componentsparameters
- configuration values for the componentOpenAS2Exception
- If an error occurs while initializing the componentSession
public void processCommand() throws OpenAS2Exception
processCommand
in interface CommandProcessor
processCommand
in class BaseCommandProcessor
OpenAS2Exception
public void destroy() throws Exception
Component
Component
requires a destroy function this method can be used.destroy
in interface Component
destroy
in class BaseCommandProcessor
Exception
- Something went wrongComponent.init(Session, Map)
,
Session
Copyright © 2018. All rights reserved.