Class MDNFileModule
java.lang.Object
com.helger.as2lib.AbstractDynamicComponent
com.helger.as2lib.processor.module.AbstractProcessorModule
com.helger.as2lib.processor.storage.AbstractStorageModule
com.helger.as2lib.processor.storage.MDNFileModule
- All Implemented Interfaces:
IDynamicComponent,IProcessorModule,IProcessorStorageModule
Store an MDN to a file
- Author:
- Philip Helger
-
Field Summary
Fields inherited from class com.helger.as2lib.processor.storage.AbstractStorageModule
ATTR_CHARSET, ATTR_FILENAME, ATTR_PROTOCOL, ATTR_TEMPDIRFields inherited from class com.helger.as2lib.AbstractDynamicComponent
m_aRWLockFields inherited from interface com.helger.as2lib.processor.storage.IProcessorStorageModule
DO_STORE, DO_STOREMDN, DO_VALIDATE_AFTER_STORE, DO_VALIDATE_BEFORE_STORE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetFilename(IMessage aMsg, String sFileParam) protected InputStreamgetMDNStream(IMessageMDN aMdn) voidMain handling of the message.Methods inherited from class com.helger.as2lib.processor.storage.AbstractStorageModule
canHandle, equals, getCharset, getCharsetName, getFile, getFilename, getProtocol, getTempDir, hashCode, initDynamicComponent, setCharsetName, setFilename, setProtocol, setTempDir, storeMethods inherited from class com.helger.as2lib.AbstractDynamicComponent
attrs, getAttributeAsIntRequired, getAttributeAsStringRequired, getName, getSession, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.as2lib.IDynamicComponent
attrs, getName, getSession
-
Constructor Details
-
MDNFileModule
public MDNFileModule()
-
-
Method Details
-
handle
public void handle(@Nonnull String sAction, @Nonnull IMessage aMsg, @Nullable Map<String, Object> aOptions) throws AS2ExceptionDescription copied from interface:IProcessorModuleMain 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
-
getFilename
protected String getFilename(@Nonnull IMessage aMsg, @Nullable String sFileParam) throws AS2InvalidParameterException - Specified by:
getFilenamein classAbstractStorageModule- Throws:
AS2InvalidParameterException
-
getMDNStream
-