Class ImmediateResenderModule
java.lang.Object
com.helger.as2lib.AbstractDynamicComponent
com.helger.as2lib.processor.module.AbstractProcessorModule
com.helger.as2lib.processor.resender.AbstractResenderModule
com.helger.as2lib.processor.resender.ImmediateResenderModule
- All Implemented Interfaces:
IDynamicComponent
,IProcessorModule
,IProcessorResenderModule
A synchronous, in-memory resender module that has no delay.
- Since:
- 2.2.0
- Author:
- Philip Helger
-
Field Summary
Fields inherited from class com.helger.as2lib.AbstractDynamicComponent
m_aRWLock
Fields inherited from interface com.helger.as2lib.processor.resender.IProcessorResenderModule
DEFAULT_RETRIES, DO_RESEND, DO_RESENDMDN, OPTION_CAUSE, OPTION_INITIAL_SENDER, OPTION_RESEND_ACTION, OPTION_RETRIES
-
Constructor Summary
-
Method Summary
Methods inherited from class com.helger.as2lib.AbstractDynamicComponent
attrs, equals, getAttributeAsIntRequired, getAttributeAsStringRequired, getName, getSession, hashCode, initDynamicComponent, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.helger.as2lib.IDynamicComponent
attrs, getName, getSession, initDynamicComponent
-
Constructor Details
-
ImmediateResenderModule
public ImmediateResenderModule()
-
-
Method Details
-
canHandle
public boolean canHandle(@Nonnull String sAction, @Nonnull IMessage aMsg, @Nullable Map<String, Object> aOptions) Description copied from interface:IProcessorModule
Check if this processor module can handle a certain action on the provided message- Parameters:
sAction
- The action to be executed. Nevernull
.aMsg
- The message in question. May be an AS2 message or an MDN message. Nevernull
.aOptions
- The options to be considered. May benull
.- Returns:
true
of this module can handle the respective message,false
if not.
-
handle
public void handle(@Nonnull String sAction, @Nonnull IMessage aMsg, @Nullable Map<String, Object> aOptions) throws AS2ExceptionDescription copied from interface:IProcessorModule
Main handling of the message. Only called, ifIProcessorModule.canHandle(String, IMessage, Map)
returnedtrue
.- Parameters:
sAction
- The action to be executed. Nevernull
.aMsg
- The message in question. May be an AS2 message or an MDN message. Nevernull
.aOptions
- The options to be considered. May benull
.- Throws:
AS2Exception
- in case something goes wrong
-