Class MessageBuilderModule

    • Field Detail

      • PARAM_ERROR_DIRECTORY

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

        public static final java.lang.String PARAM_ERROR_FILENAME
        See Also:
        Constant Field Values
      • PARAM_SENT_DIRECTORY

        public static final java.lang.String PARAM_SENT_DIRECTORY
        See Also:
        Constant Field Values
      • PARAM_SENT_FILENAME

        public static final java.lang.String PARAM_SENT_FILENAME
        See Also:
        Constant Field Values
      • PARAM_DELIMITERS

        public static final java.lang.String PARAM_DELIMITERS
        See Also:
        Constant Field Values
      • PARAM_MERGE_EXTRA

        public static final java.lang.String PARAM_MERGE_EXTRA
        See Also:
        Constant Field Values
      • PARAM_RESEND_MAX_RETRIES

        public static final java.lang.String PARAM_RESEND_MAX_RETRIES
        See Also:
        Constant Field Values
      • logger

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

      • MessageBuilderModule

        public MessageBuilderModule()
    • 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
      • processDocument

        protected Message processDocument​(java.io.InputStream ip,
                                          java.lang.String filename)
                                   throws OpenAS2Exception,
                                          java.io.FileNotFoundException
        Throws:
        OpenAS2Exception
        java.io.FileNotFoundException
      • createMessage

        protected abstract Message createMessage()