Class DirectoryResenderModule

    • Field Detail

      • PARAM_RESEND_DIRECTORY

        public static final java.lang.String PARAM_RESEND_DIRECTORY
        See Also:
        Constant Field Values
      • PARAM_ERROR_DIRECTORY

        public static final java.lang.String PARAM_ERROR_DIRECTORY
        See Also:
        Constant Field Values
      • PARAM_RESEND_DELAY

        public static final java.lang.String PARAM_RESEND_DELAY
        See Also:
        Constant Field Values
      • resendDirPath

        private java.lang.String resendDirPath
      • logger

        private org.apache.commons.logging.Log logger
    • Constructor Detail

      • DirectoryResenderModule

        public DirectoryResenderModule()
    • Method Detail

      • init

        public void init​(Session session,
                         java.util.Map<java.lang.String,​java.lang.String> options)
                  throws OpenAS2Exception
        Description copied from interface: Component
        Component lifecycle hook. After creating a Component object, this method should be called to set any parameters used by the component. Component implementations typically have required parameter checking and code to start timers and threads within this method.
        Specified by:
        init in interface Component
        Overrides:
        init in class BaseComponent
        Parameters:
        session - the component uses this object to access other components
        options - configuration values for the component
        Throws:
        OpenAS2Exception - If an error occurs while initializing the component
        See Also:
        Session
      • healthcheck

        public boolean healthcheck​(java.util.List<java.lang.String> failures)
        Description copied from interface: ActiveModule
        When invoked, the module must run a self check to verify it is functioning correctly. Any failures must be reported in the failures list passed in to the method by the callee
        Specified by:
        healthcheck in interface ActiveModule
        Specified by:
        healthcheck in class BaseActiveModule
        Parameters:
        failures - - a list of failures if any occur
        Returns:
        - true if module has no problems otherwise false ith failure messages in passed in List
      • isTimeToSend

        protected boolean isTimeToSend​(java.io.File currentFile)
      • scanDirectory

        protected java.util.List<java.io.File> scanDirectory()
                                                      throws OpenAS2Exception,
                                                             java.io.IOException
        Throws:
        OpenAS2Exception
        java.io.IOException