public class JilterEOMActionsImpl extends java.lang.Object implements JilterEOMActions
| Constructor and Description | 
|---|
JilterEOMActionsImpl(java.nio.channels.WritableByteChannel writeChannel)  | 
| Modifier and Type | Method and 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 | 
chgfrom(java.lang.String from)
Change Env From 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. 
 | 
public JilterEOMActionsImpl(java.nio.channels.WritableByteChannel writeChannel)
public void addheader(java.lang.String headerf,
                      java.lang.String headerv)
               throws java.io.IOException
JilterEOMActionsaddheader in interface JilterEOMActionsheaderf - the header name.headerv - the header value.java.io.IOExceptionpublic void chgheader(java.lang.String headerf,
                      int hdridx,
                      java.lang.String headerv)
               throws java.io.IOException
JilterEOMActionschgheader in interface JilterEOMActionsheaderf - 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.java.io.IOExceptionpublic void chgfrom(java.lang.String from)
             throws java.io.IOException
JilterEOMActionschgfrom in interface JilterEOMActionsfrom - the new recipient's address.java.io.IOExceptionpublic void addrcpt(java.lang.String rcpt)
             throws java.io.IOException
JilterEOMActionsaddrcpt in interface JilterEOMActionsrcpt - the new recipient's address.java.io.IOExceptionpublic void delrcpt(java.lang.String rcpt)
             throws java.io.IOException
JilterEOMActionsdelrcpt in interface JilterEOMActionsrcpt - the recipient address to be removed.java.io.IOExceptionpublic void replacebody(java.nio.ByteBuffer bodyp)
                 throws java.io.IOException
JilterEOMActionsreplacebody in interface JilterEOMActionsbodyp - a buffer containing the new body data. Body data should be in
              CR/LF form.java.io.IOExceptionpublic void progress()
              throws java.io.IOException
JilterEOMActionsprogress in interface JilterEOMActionsjava.io.IOExceptionpublic void finish(JilterStatus status) throws java.io.IOException
JilterEOMActionsfinish in interface JilterEOMActionsstatus - the resulting status of EOM processing.java.io.IOExceptionCopyright © 2023. All Rights Reserved.