public class DirectoryResenderModule extends BaseResenderModule
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_RESEND_DELAY |
static String |
PARAM_ERROR_DIRECTORY |
static String |
PARAM_RESEND_DELAY |
static String |
PARAM_RESEND_DIRECTORY |
TICK_INTERVALDO_RESEND, DO_RESENDMDN, OPTION_CAUSE, OPTION_INITIAL_SENDER, OPTION_RESEND_METHOD, OPTION_RETRIES| Constructor and Description |
|---|
DirectoryResenderModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandle(String action,
Message msg,
Map<Object,Object> options) |
protected String |
getFilename() |
void |
handle(String action,
Message msg,
Map<Object,Object> options) |
boolean |
healthcheck(List<String> failures)
When invoked, the module must run a self check to verify it is functioning correctly.
|
void |
init(Session session,
Map<String,String> options)
Component lifecycle hook.
|
protected boolean |
isTimeToSend(File currentFile) |
protected void |
processFile(File file) |
void |
resend() |
protected List<File> |
scanDirectory() |
doStart, doStopforceStop, isRunning, start, stop, toStringdestroy, getName, getParameter, getParameter, getParameterInt, getParameters, getSession, setParameter, setParameterclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdestroy, getName, getParameters, getSessionpublic static final String PARAM_RESEND_DIRECTORY
public static final String PARAM_ERROR_DIRECTORY
public static final String PARAM_RESEND_DELAY
public static final long DEFAULT_RESEND_DELAY
public boolean canHandle(String action, Message msg, Map<Object,Object> options)
canHandle in interface ProcessorModulecanHandle in class BaseActiveModulepublic void handle(String action, Message msg, Map<Object,Object> options) throws OpenAS2Exception
handle in interface ProcessorModulehandle in class BaseActiveModuleOpenAS2Exceptionpublic void init(Session session, Map<String,String> options) throws OpenAS2Exception
Componentinit in interface Componentinit in class BaseComponentsession - the component uses this object to access other componentsoptions - configuration values for the componentOpenAS2Exception - If an error occurs while initializing the componentSessionpublic void resend()
resend in class BaseResenderModulepublic boolean healthcheck(List<String> failures)
ActiveModulehealthcheck in interface ActiveModulehealthcheck in class BaseActiveModulefailures - - a list of failures if any occurprotected String getFilename() throws InvalidParameterException
InvalidParameterExceptionprotected boolean isTimeToSend(File currentFile)
protected void processFile(File file) throws OpenAS2Exception
OpenAS2Exceptionprotected List<File> scanDirectory() throws OpenAS2Exception, IOException
OpenAS2ExceptionIOExceptionCopyright © 2019. All rights reserved.