Class AsynchMDNSenderModule
java.lang.Object
com.helger.as2lib.AbstractDynamicComponent
com.helger.as2lib.processor.module.AbstractProcessorModule
com.helger.as2lib.processor.sender.AbstractSenderModule
com.helger.as2lib.processor.sender.AbstractHttpSenderModule
com.helger.as2lib.processor.sender.AsynchMDNSenderModule
- All Implemented Interfaces:
IDynamicComponent
,IProcessorModule
,IProcessorSenderModule
A module to send an asynchronous MDN.
- Author:
- Philip Helger
-
Field Summary
Fields inherited from class com.helger.as2lib.processor.sender.AbstractHttpSenderModule
ATTR_CONNECT_TIMEOUT, ATTR_QUOTE_HEADER_VALUES, ATTR_RESPONSE_TIMEOUT, DEFAULT_CONNECT_TIMEOUT, DEFAULT_QUOTE_HEADER_VALUES, DEFAULT_RESPONSE_TIMEOUT
Fields inherited from class com.helger.as2lib.AbstractDynamicComponent
m_aRWLock
Fields inherited from interface com.helger.as2lib.processor.sender.IProcessorSenderModule
DO_SEND, DO_SEND_ASYNC_MDN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if this processor module can handle a certain action on the provided messagevoid
Main handling of the message.Methods inherited from class com.helger.as2lib.processor.sender.AbstractHttpSenderModule
createHostnameVerifier, createSSLContext, getConnectTimeout, getEffectiveHttpIncomingDumper, getHttpClient, getHttpIncomingDumper, getHttpOutgoingDumper, getHttpOutgoingDumperFactory, getOutgoingHttpCallback, getResponseTimeout, isQuoteHeaderValues, isUseSSL, setConnectTimeoutMilliseconds, setHttpIncomingDumper, setHttpOutgoingDumperFactory, setOutgoingHttpCallback, setQuoteHeaderValues, setResponseTimeoutMilliseconds
Methods inherited from class com.helger.as2lib.processor.sender.AbstractSenderModule
doResend, getRetryCount
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
-
AsynchMDNSenderModule
public AsynchMDNSenderModule()
-
-
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 aBaseMsg, @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
.aBaseMsg
- 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
-