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) |
boolean |
equals(Object o) |
protected Charset |
getCharset() |
String |
getCharsetName() |
protected File |
getFile(IMessage aMsg,
String sFileParam)
Not final - see #105
|
String |
getFilename() |
protected abstract String |
getFilename(IMessage aMsg,
String sFileParam) |
String |
getProtocol() |
String |
getTempDir() |
int |
hashCode() |
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.
|
void |
setCharsetName(String sCharsetName) |
void |
setFilename(String sFilename) |
void |
setProtocol(String sProtocol) |
void |
setTempDir(String sTempDir) |
protected void |
store(File aMsgFile,
InputStream aIS) |
attrs, getAttributeAsIntRequired, getAttributeAsStringRequired, getName, getSession, 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
@Nonnull protected Charset getCharset()
ATTR_CHARSET parameter or the
system default. Never null.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 AS2Exception
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!AS2Exception - If an error occurs while initializing the componentAS2InvalidParameterException - If a required parameter is null in the parameters MapIAS2Sessionprotected abstract String getFilename(IMessage aMsg, String sFileParam) throws AS2InvalidParameterException
AS2InvalidParameterException@Nonnull @OverrideOnDemand protected File getFile(@Nonnull IMessage aMsg, @Nullable String sFileParam) throws IOException, AS2Exception
aMsg - The source messagesFileParam - The parameter name including the filenameFile to be usedIOException - In case of IO errorAS2Exception - In case of errorprotected void store(@Nonnull File aMsgFile, @Nonnull @WillClose InputStream aIS) throws IOException
IOExceptionpublic boolean equals(Object o)
equals in class AbstractDynamicComponentpublic int hashCode()
hashCode in class AbstractDynamicComponentCopyright © 2013–2022 Philip Helger. All rights reserved.