Class JilterEOMActionsImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      JilterEOMActionsImpl​(java.nio.channels.WritableByteChannel writeChannel)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addheader​(java.lang.String headerf, java.lang.String headerv)
      Add a header to the current message.
      void addrcpt​(java.lang.String rcpt)
      Add a recipient for the current message.
      void chgheader​(java.lang.String headerf, int hdridx, java.lang.String headerv)
      Change or delete a message header.
      void delrcpt​(java.lang.String rcpt)
      Removes the named recipient from the current message's envelope.
      void finish​(JilterStatus status)
      Set the resulting EOM status.
      void progress()
      Notify the MTA that an operation is still in progress.
      void replacebody​(java.nio.ByteBuffer bodyp)
      Replaces the body of the current message.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JilterEOMActionsImpl

        public JilterEOMActionsImpl​(java.nio.channels.WritableByteChannel writeChannel)
    • Method Detail

      • addheader

        public void addheader​(java.lang.String headerf,
                              java.lang.String headerv)
                       throws java.io.IOException
        Description copied from interface: JilterEOMActions
        Add a header to the current message.
        Specified by:
        addheader in interface JilterEOMActions
        Parameters:
        headerf - the header name.
        headerv - the header value.
        Throws:
        java.io.IOException
      • chgheader

        public void chgheader​(java.lang.String headerf,
                              int hdridx,
                              java.lang.String headerv)
                       throws java.io.IOException
        Description copied from interface: JilterEOMActions
        Change or delete a message header.
        Specified by:
        chgheader in interface JilterEOMActions
        Parameters:
        headerf - the header name.
        hdridx - header index value (1-based). A hdridx value of 1 will modify the first occurrence of a header named headerf. If hdridx is greater than the number of times headerf appears, a new copy of headerf will be added.
        headerv - the new value of the given header. headerv == null indicates that the header should be deleted.
        Throws:
        java.io.IOException
      • addrcpt

        public void addrcpt​(java.lang.String rcpt)
                     throws java.io.IOException
        Description copied from interface: JilterEOMActions
        Add a recipient for the current message.
        Specified by:
        addrcpt in interface JilterEOMActions
        Parameters:
        rcpt - the new recipient's address.
        Throws:
        java.io.IOException
      • delrcpt

        public void delrcpt​(java.lang.String rcpt)
                     throws java.io.IOException
        Description copied from interface: JilterEOMActions
        Removes the named recipient from the current message's envelope.
        Specified by:
        delrcpt in interface JilterEOMActions
        Parameters:
        rcpt - the recipient address to be removed.
        Throws:
        java.io.IOException
      • replacebody

        public void replacebody​(java.nio.ByteBuffer bodyp)
                         throws java.io.IOException
        Description copied from interface: JilterEOMActions
        Replaces the body of the current message. If called more than once, subsequent calls result in data being appended to the new body.
        Specified by:
        replacebody in interface JilterEOMActions
        Parameters:
        bodyp - a buffer containing the new body data. Body data should be in CR/LF form.
        Throws:
        java.io.IOException
      • progress

        public void progress()
                      throws java.io.IOException
        Description copied from interface: JilterEOMActions
        Notify the MTA that an operation is still in progress.
        Specified by:
        progress in interface JilterEOMActions
        Throws:
        java.io.IOException
      • finish

        public void finish​(JilterStatus status)
                    throws java.io.IOException
        Description copied from interface: JilterEOMActions
        Set the resulting EOM status. Note: Calling the method essentially invalidates this object. The result of any subsequent calls to methods on this object is undefined.
        Specified by:
        finish in interface JilterEOMActions
        Parameters:
        status - the resulting status of EOM processing.
        Throws:
        java.io.IOException