public abstract class AbstractMessageProcessor extends AbstractDynamicComponent implements IMessageProcessor
IMessageProcessor. It provides all
methods except
IMessageProcessor.handle(String, com.helger.as2lib.message.IMessage, java.util.Map).m_aRWLockATTR_PENDINGMDN, ATTR_PENDINGMDNINFO| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMessageProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
addModule(IProcessorModule aModule) |
boolean |
equals(Object o) |
protected void |
executeAction(String sAction,
IMessage aMsg,
Map<String,Object> aOptions)
Execution the provided action with the registered modules.
|
com.helger.commons.collection.impl.ICommonsList<IProcessorActiveModule> |
getAllActiveModules() |
com.helger.commons.collection.impl.ICommonsList<IProcessorModule> |
getAllModules() |
<T extends IProcessorModule> |
getAllModulesOfClass(Class<T> aClass) |
int |
getModuleCount() |
<T extends IProcessorModule> |
getModuleOfClass(Class<T> aClass) |
int |
hashCode() |
com.helger.commons.state.EChange |
removeModule(IProcessorModule aModule) |
void |
startActiveModules()
Call
start on all modules that implement the
IProcessorActiveModule interface. |
void |
stopActiveModules()
Call
stop on all modules that implement the
IProcessorActiveModule interface. |
attrs, getAttributeAsIntRequired, getAttributeAsStringRequired, getName, getSession, initDynamicComponent, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPendingMDNFolder, getPendingMDNInfoFolder, handle, setPendingMDNFolder, setPendingMDNInfoFolderattrs, getName, getSession, initDynamicComponentpublic void addModule(@Nonnull IProcessorModule aModule)
addModule in interface IMessageProcessor@Nonnull public com.helger.commons.state.EChange removeModule(@Nullable IProcessorModule aModule)
removeModule in interface IMessageProcessor@Nonnegative public int getModuleCount()
getModuleCount in interface IMessageProcessor@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<IProcessorModule> getAllModules()
getAllModules in interface IMessageProcessor@Nullable public <T extends IProcessorModule> T getModuleOfClass(@Nonnull Class<T> aClass)
getModuleOfClass in interface IMessageProcessor@Nonnull @ReturnsMutableCopy public <T extends IProcessorModule> com.helger.commons.collection.impl.ICommonsList<T> getAllModulesOfClass(@Nonnull Class<T> aClass)
getAllModulesOfClass in interface IMessageProcessor@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<IProcessorActiveModule> getAllActiveModules()
getAllActiveModules in interface IMessageProcessorIProcessorActiveModule interface. Never
null but maybe empty.public void startActiveModules()
IMessageProcessorstart on all modules that implement the
IProcessorActiveModule interface.startActiveModules in interface IMessageProcessorpublic void stopActiveModules()
IMessageProcessorstop on all modules that implement the
IProcessorActiveModule interface.stopActiveModules in interface IMessageProcessorprotected final void executeAction(@Nonnull String sAction, @Nonnull IMessage aMsg, @Nullable Map<String,Object> aOptions) throws AS2Exception
sAction - Action to execute. Never null.aMsg - Message it is about. Never null.aOptions - Optional options map to be used. May be null.AS2Exception - In case of errorpublic boolean equals(Object o)
equals in class AbstractDynamicComponentpublic int hashCode()
hashCode in class AbstractDynamicComponentCopyright © 2013–2022 Philip Helger. All rights reserved.