Interface IProcessorModule
-
- All Superinterfaces:
IDynamicComponent
- All Known Subinterfaces:
IProcessorActiveModule,IProcessorReceiverModule,IProcessorResenderModule,IProcessorSenderModule,IProcessorStorageModule
- All Known Implementing Classes:
AbstractActiveModule,AbstractActiveNetModule,AbstractActivePollingModule,AbstractActiveReceiverModule,AbstractActiveResenderModule,AbstractDirectoryPollingModule,AbstractHttpSenderModule,AbstractProcessorModule,AbstractResenderModule,AbstractSenderModule,AbstractStorageModule,AS2DirectoryPollingModule,AS2MDNReceiverModule,AS2ReceiverModule,AS2SenderModule,AsynchMDNSenderModule,DirectoryResenderModule,ImmediateResenderModule,InMemoryResenderModule,MDNFileModule,MessageFileModule
public interface IProcessorModule extends IDynamicComponent
A processor module is a module that is to be used within anIMessageProcessorinstance.- Author:
- OpenAS2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanHandle(String sAction, IMessage aMsg, Map<String,Object> aOptions)Check if this processor module can handle a certain action on the provided messagevoidhandle(String sAction, IMessage aMsg, Map<String,Object> aOptions)Main handling of the message.-
Methods inherited from interface com.helger.as2lib.IDynamicComponent
attrs, getName, getSession, initDynamicComponent
-
-
-
-
Method Detail
-
canHandle
boolean canHandle(@Nonnull String sAction, @Nonnull IMessage aMsg, @Nullable Map<String,Object> aOptions)
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:
trueof this module can handle the respective message,falseif not.
-
handle
void handle(@Nonnull String sAction, @Nonnull IMessage aMsg, @Nullable Map<String,Object> aOptions) throws AS2Exception
Main handling of the message. Only called, ifcanHandle(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
-
-