public abstract class JilterHandlerAdapter extends java.lang.Object implements JilterHandler
PROCESS_BODY, PROCESS_CONNECT, PROCESS_ENVFROM, PROCESS_ENVRCPT, PROCESS_HEADER, PROCESS_HELO, SMFIF_ADDHDRS, SMFIF_ADDRCPT, SMFIF_CHGBODY, SMFIF_CHGHDRS, SMFIF_DELRCPT, SMFIF_MODBODY, SMFIF_NONE| Constructor and Description | 
|---|
JilterHandlerAdapter()  | 
| Modifier and Type | Method and Description | 
|---|---|
JilterStatus | 
abort()
Handle the current message being aborted. 
 | 
JilterStatus | 
body(java.nio.ByteBuffer bodyp)
Handle a piece of a message's body. 
 | 
JilterStatus | 
close()
The current connection is being closed. 
 | 
JilterStatus | 
connect(java.lang.String hostname,
       java.net.InetAddress hostaddr,
       java.util.Properties properties)
Called once at the start of each SMTP connection. 
 | 
JilterStatus | 
envfrom(java.lang.String[] argv,
       java.util.Properties properties)
Handle the envelope FROM command. 
 | 
JilterStatus | 
envrcpt(java.lang.String[] argv,
       java.util.Properties properties)
Handle the envelope RCPT command. 
 | 
JilterStatus | 
eoh()
Handle the end of message headers. 
 | 
JilterStatus | 
eom(JilterEOMActions eomActions,
   java.util.Properties properties)
End of a message. 
 | 
int | 
getRequiredModifications()
Get the list of required modifications needed by this handler. 
 | 
JilterStatus | 
header(java.lang.String headerf,
      java.lang.String headerv)
Handle a message header. 
 | 
JilterStatus | 
helo(java.lang.String helohost,
    java.util.Properties properties)
Handle the HELO/EHLO command. 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSupportedProcessespublic JilterStatus connect(java.lang.String hostname, java.net.InetAddress hostaddr, java.util.Properties properties)
JilterHandlerconnect in interface JilterHandlerhostname - The host name of the message sender, as determined by a
            reverse lookup on the host address.hostaddr - The host address, as determined by a
            getpeername() call on the SMTP socket.properties - Any properties (macros) received from the MTA.SMFIS_ return codes from JilterStatus.
         NOTE: The MTA will currently ignore any custom values
         (values other than SMFIS_ values). Specifically,
         values created with JilterStatus.makeCustomStatus will not be honored.public JilterStatus helo(java.lang.String helohost, java.util.Properties properties)
JilterHandlerhelo in interface JilterHandlerhelohost - Value passed to HELO/EHLO command, which should be the domain
            name of the sending host (but is, in practice, anything the
            sending host wants to send).properties - Any properties (macros) received from the MTA.SMFIS_ return codes from JilterStatus.public JilterStatus envfrom(java.lang.String[] argv, java.util.Properties properties)
JilterHandlerenvrcpt.envfrom in interface JilterHandlerargv - An array of SMTP command arguments. argv[0] is
            guaranteed to be the sender address. Later arguments are the
            ESMTP arguments.properties - Any properties (macros) received from the MTA.SMFIS_ return codes from JilterStatus.public JilterStatus envrcpt(java.lang.String[] argv, java.util.Properties properties)
JilterHandlerenvfrom.envrcpt in interface JilterHandlerargv - An array of SMTP command arguments. argv[0] is
            guaranteed to be the recipient address. Later arguments are
            the ESMTP arguments.properties - Any properties (macros) received from the MTA.SMFIS_ return codes from JilterStatus.public JilterStatus header(java.lang.String headerf, java.lang.String headerv)
JilterHandlerenvrcpt and eoh, once per message header.header in interface JilterHandlerheaderf - Header field name.headerv - Header field value. The content of the header may include
            folded white space (i.e. multiple lines with following white
            space). The trailing line terminator (CR/LF) is removed.SMFIS_ return codes from JilterStatus.public JilterStatus eoh()
JilterHandlereoh in interface JilterHandlerSMFIS_ return codes from JilterStatus.public JilterStatus body(java.nio.ByteBuffer bodyp)
JilterHandlerbody in interface JilterHandlerbodyp - This block of body data.SMFIS_ return codes from JilterStatus.public JilterStatus eom(JilterEOMActions eomActions, java.util.Properties properties)
JilterHandlerbody for a
 given message.eom in interface JilterHandlereomActions - Interface for effecting message changes.properties - Any properties (macros) received from the MTA.SMFIS_ return codes from JilterStatus.public JilterStatus abort()
JilterHandlereom).abort in interface JilterHandlerSMFIS_ return codes from JilterStatus.public JilterStatus close()
JilterHandlerclose in interface JilterHandlerSMFIS_ return codes from JilterStatus.public int getRequiredModifications()
JilterHandlergetRequiredModifications in interface JilterHandlerSMFIF_ constants.Copyright © 2023. All Rights Reserved.