Class BaseMsgTrackingModule
- java.lang.Object
-
- org.openas2.BaseComponent
-
- org.openas2.processor.BaseProcessorModule
-
- org.openas2.processor.msgtracking.BaseMsgTrackingModule
-
- All Implemented Interfaces:
Component
,ActiveModule
,TrackingModule
,ProcessorModule
- Direct Known Subclasses:
DbTrackingModule
public abstract class BaseMsgTrackingModule extends BaseProcessorModule implements TrackingModule
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BaseMsgTrackingModule.FIELDS
-
Field Summary
-
Fields inherited from interface org.openas2.processor.msgtracking.TrackingModule
DO_TRACK_MSG, TRACK_MSG_TCP_SERVER
-
-
Constructor Summary
Constructors Constructor Description BaseMsgTrackingModule()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.util.Map<java.lang.String,java.lang.String>
buildMap(Message msg, java.util.Map<java.lang.Object,java.lang.Object> options)
boolean
canHandle(java.lang.String action, Message msg, java.util.Map<java.lang.Object,java.lang.Object> options)
protected abstract java.lang.String
getModuleAction()
void
handle(java.lang.String action, Message msg, java.util.Map<java.lang.Object,java.lang.Object> options)
void
init(Session session, java.util.Map<java.lang.String,java.lang.String> options)
Component lifecycle hook.protected abstract void
persist(Message msg, java.util.Map<java.lang.String,java.lang.String> map)
-
Methods inherited from class org.openas2.BaseComponent
destroy, getName, getParameter, getParameter, getParameterInt, getParameters, getSession, setParameter, setParameter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openas2.processor.ActiveModule
healthcheck, isRunning, start, stop
-
Methods inherited from interface org.openas2.Component
destroy, getName, getParameters, getSession
-
-
-
-
Method Detail
-
handle
public void handle(java.lang.String action, Message msg, java.util.Map<java.lang.Object,java.lang.Object> options) throws OpenAS2Exception
- Specified by:
handle
in interfaceProcessorModule
- Throws:
OpenAS2Exception
-
canHandle
public boolean canHandle(java.lang.String action, Message msg, java.util.Map<java.lang.Object,java.lang.Object> options)
- Specified by:
canHandle
in interfaceProcessorModule
-
init
public void init(Session session, java.util.Map<java.lang.String,java.lang.String> options) throws OpenAS2Exception
Description copied from interface:Component
Component 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:
init
in interfaceComponent
- Overrides:
init
in classBaseComponent
- Parameters:
session
- the component uses this object to access other componentsoptions
- configuration values for the component- Throws:
OpenAS2Exception
- If an error occurs while initializing the component- See Also:
Session
-
getModuleAction
protected abstract java.lang.String getModuleAction()
-
persist
protected abstract void persist(Message msg, java.util.Map<java.lang.String,java.lang.String> map)
-
buildMap
protected java.util.Map<java.lang.String,java.lang.String> buildMap(Message msg, java.util.Map<java.lang.Object,java.lang.Object> options)
-
-