public abstract class AbstractStorageModule extends AbstractProcessorModule implements IProcessorStorageModule
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTR_CHARSET |
static String |
ATTR_FILENAME |
static String |
ATTR_PROTOCOL |
static String |
ATTR_TEMPDIR |
m_aRWLockDO_STORE, DO_STOREMDN, DO_VALIDATE_AFTER_STORE, DO_VALIDATE_BEFORE_STORE| Modifier | Constructor and Description |
|---|---|
protected |
AbstractStorageModule(String sModuleAction) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(String sAction,
IMessage aMsg,
Map<String,Object> aOptions) |
protected Charset |
getCharset() |
protected File |
getFile(IMessage aMsg,
String sFileParam,
String sAction) |
protected abstract String |
getFilename(IMessage aMsg,
String sFileParam,
String sAction) |
void |
initDynamicComponent(IAS2Session aSession,
com.helger.commons.collection.attr.IStringMap aOptions)
After creating a Component object, this method should be called to set any
parameters used by the component.
|
protected void |
store(File aMsgFile,
InputStream aIS) |
attrs, equals, getAttributeAsIntRequired, getAttributeAsStringRequired, getName, getSession, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waithandleattrs, getName, getSessionpublic static final String ATTR_FILENAME
public static final String ATTR_PROTOCOL
public static final String ATTR_TEMPDIR
public static final String ATTR_CHARSET
public final boolean canHandle(@Nonnull String sAction, @Nonnull IMessage aMsg, @Nullable Map<String,Object> aOptions)
canHandle in interface IProcessorModulepublic final void initDynamicComponent(@Nonnull IAS2Session aSession, @Nullable com.helger.commons.collection.attr.IStringMap aOptions) throws OpenAS2Exception
IDynamicComponentinitDynamicComponent in interface IDynamicComponentinitDynamicComponent in class AbstractDynamicComponentaSession - the component uses this object to access other componentsaOptions - configuration values for the component. All parameters will be
stored as attributes of this component. All attributes existing
before this method is called will be removed!OpenAS2Exception - If an error occurs while initializing the componentInvalidParameterException - If a required parameter is null in the parameters MapIAS2Session@Nonnull protected Charset getCharset()
ATTR_CHARSET parameter or the
system default. Never null.protected File getFile(IMessage aMsg, String sFileParam, String sAction) throws IOException, OpenAS2Exception
aMsg - The source messagesFileParam - The parameter name including the filenamesAction - Action nameFile to be usedIOException - In case of IO errorOpenAS2Exception - In case of errorprotected abstract String getFilename(IMessage aMsg, String sFileParam, String sAction) throws InvalidParameterException
InvalidParameterExceptionprotected void store(@Nonnull File aMsgFile, @Nonnull @WillClose InputStream aIS) throws IOException
IOExceptionCopyright © 2013–2019 Philip Helger. All rights reserved.