Package com.helger.as2lib.processor
Interface IMessageProcessor
- All Superinterfaces:
IDynamicComponent
- All Known Implementing Classes:
AbstractMessageProcessor
,AsyncMessageProcessor
,DefaultMessageProcessor
Process incoming messages.
- Author:
- Philip Helger
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addModule
(IProcessorModule aModule) com.helger.commons.collection.impl.ICommonsList<IProcessorActiveModule>
com.helger.commons.collection.impl.ICommonsList<IProcessorModule>
<T extends IProcessorModule>
com.helger.commons.collection.impl.ICommonsList<T>getAllModulesOfClass
(Class<T> aClass) int
<T extends IProcessorModule>
TgetModuleOfClass
(Class<T> aClass) default String
default String
void
com.helger.commons.state.EChange
removeModule
(IProcessorModule aModule) default void
setPendingMDNFolder
(String sPendingMDNFolder) Set the name of the folder that contains the messages with the pending MDN.default void
setPendingMDNInfoFolder
(String sPendingMDNInfoFolder) Set the name of the folder that contains the pending MDN information files.void
Callstart
on all modules that implement theIProcessorActiveModule
interface.void
Callstop
on all modules that implement theIProcessorActiveModule
interface.Methods inherited from interface com.helger.as2lib.IDynamicComponent
attrs, getName, getSession, initDynamicComponent
-
Field Details
-
ATTR_PENDINGMDN
- See Also:
-
ATTR_PENDINGMDNINFO
- See Also:
-
-
Method Details
-
getPendingMDNFolder
- Returns:
- The name of the folder that contains the messages with the pending
MDNs. May be
null
. - Since:
- 4.6.4
- See Also:
-
setPendingMDNFolder
Set the name of the folder that contains the messages with the pending MDN.- Parameters:
sPendingMDNFolder
- The name of the folder. May neither benull
nor empty.- Since:
- 4.6.4
- See Also:
-
getPendingMDNInfoFolder
- Returns:
- The name of the folder that contains the pending MDN information
files. May be
null
. - Since:
- 4.6.4
- See Also:
-
setPendingMDNInfoFolder
Set the name of the folder that contains the pending MDN information files.- Parameters:
sPendingMDNInfoFolder
- The name of the folder. May neither benull
nor empty.- Since:
- 4.6.4
- See Also:
-
handle
void handle(@Nonnull String sAction, @Nonnull IMessage aMsg, @Nullable Map<String, Object> aOptions) throws AS2Exception- Throws:
AS2Exception
-
addModule
-
removeModule
-
getModuleCount
-
getAllModules
@Nonnull @ReturnsMutableCopy com.helger.commons.collection.impl.ICommonsList<IProcessorModule> getAllModules() -
getModuleOfClass
-
getAllModulesOfClass
@Nonnull @ReturnsMutableCopy <T extends IProcessorModule> com.helger.commons.collection.impl.ICommonsList<T> getAllModulesOfClass(@Nonnull Class<T> aClass) -
getAllActiveModules
@Nonnull @ReturnsMutableCopy com.helger.commons.collection.impl.ICommonsList<IProcessorActiveModule> getAllActiveModules()- Returns:
- A list of all modules, that implement the
IProcessorActiveModule
interface. Nevernull
but maybe empty.
-
startActiveModules
void startActiveModules()Callstart
on all modules that implement theIProcessorActiveModule
interface. -
stopActiveModules
void stopActiveModules()Callstop
on all modules that implement theIProcessorActiveModule
interface.
-