Package org.openas2.processor.storage
Class MessageFileModule
- java.lang.Object
-
- org.openas2.BaseComponent
-
- org.openas2.processor.BaseProcessorModule
-
- org.openas2.processor.storage.BaseStorageModule
-
- org.openas2.processor.storage.MessageFileModule
-
- All Implemented Interfaces:
Component,ProcessorModule,StorageModule
public class MessageFileModule extends BaseStorageModule
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPARAM_HEADER-
Fields inherited from class org.openas2.processor.storage.BaseStorageModule
PARAM_FILENAME, PARAM_PROTOCOL, PARAM_TEMPDIR
-
Fields inherited from interface org.openas2.processor.storage.StorageModule
DO_STORE, DO_STOREMDN
-
-
Constructor Summary
Constructors Constructor Description MessageFileModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetFilename(Message msg, java.lang.String fileParam, java.lang.String action)protected java.io.InputStreamgetHeaderStream(Message msg)protected java.lang.StringgetModuleAction()voidhandle(java.lang.String action, Message msg, java.util.Map<java.lang.Object,java.lang.Object> options)-
Methods inherited from class org.openas2.processor.storage.BaseStorageModule
canHandle, getFile, getFile, init, store, writeStream
-
Methods inherited from class org.openas2.BaseComponent
destroy, getName, getParameter, getParameter, getParameterInt, getParameters, getSession, setParameter, setParameter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openas2.Component
destroy, getName, getParameters, getSession
-
-
-
-
Field Detail
-
PARAM_HEADER
public static final java.lang.String PARAM_HEADER
- See Also:
- Constant Field Values
-
-
Method Detail
-
handle
public void handle(java.lang.String action, Message msg, java.util.Map<java.lang.Object,java.lang.Object> options) throws OpenAS2Exception- Throws:
OpenAS2Exception
-
getModuleAction
protected java.lang.String getModuleAction()
- Specified by:
getModuleActionin classBaseStorageModule
-
getFilename
protected java.lang.String getFilename(Message msg, java.lang.String fileParam, java.lang.String action) throws InvalidParameterException
- Specified by:
getFilenamein classBaseStorageModule- Throws:
InvalidParameterException- Since:
- 2007-06-01
-
getHeaderStream
protected java.io.InputStream getHeaderStream(Message msg) throws java.io.IOException
- Throws:
java.io.IOException
-
-