Package com.sendmail.jilter
Class JilterStatus
- java.lang.Object
-
- com.sendmail.jilter.JilterStatus
-
public abstract class JilterStatus extends java.lang.ObjectStatus class for methods inJilterHandler.
-
-
Field Summary
Fields Modifier and Type Field Description static JilterStatusSMFIS_ACCEPTAcceptance.static JilterStatusSMFIS_CONTINUEContinue processing the current connection, message, or recipient.static JilterStatusSMFIS_DISCARDMessage discard.static JilterStatusSMFIS_REJECTRejection.static JilterStatusSMFIS_TEMPFAILReturn a temporary failure, i.e., the corresponding SMTP command will return an appropriate 4xx status code.
-
Constructor Summary
Constructors Modifier Constructor Description protectedJilterStatus()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static JilterStatusmakeCustomStatus(java.lang.String rcode, java.lang.String xcode, java.lang.String[] messageLines)Creates a new JilterStatus with a custom error reply code.abstract voidsendReplyPacket(java.nio.channels.WritableByteChannel writeChannel)
-
-
-
Field Detail
-
SMFIS_CONTINUE
public static final JilterStatus SMFIS_CONTINUE
Continue processing the current connection, message, or recipient.
-
SMFIS_REJECT
public static final JilterStatus SMFIS_REJECT
-
SMFIS_DISCARD
public static final JilterStatus SMFIS_DISCARD
Message discard. For a message- or recipient-oriented routine, accept this message, but silently discard it.SMFIS_DISCARDshould not be returned by a connection-oriented routine.
-
SMFIS_ACCEPT
public static final JilterStatus SMFIS_ACCEPT
Acceptance. For a connection-oriented routine, accept this connection without further filter processing; callclose. For a message- or recipient-oriented routine, accept this message without further filtering.
-
SMFIS_TEMPFAIL
public static final JilterStatus SMFIS_TEMPFAIL
Return a temporary failure, i.e., the corresponding SMTP command will return an appropriate 4xx status code. For a message-oriented routine (exceptenvfrom), fail for this message. For a connection-oriented routine, fail for this connection; callclose. For a recipient-oriented routine, only fail for the current recipient; continue message processing.
-
-
Method Detail
-
sendReplyPacket
public abstract void sendReplyPacket(java.nio.channels.WritableByteChannel writeChannel) throws java.io.IOException- Throws:
java.io.IOException
-
makeCustomStatus
public static JilterStatus makeCustomStatus(java.lang.String rcode, java.lang.String xcode, java.lang.String[] messageLines) throws java.lang.IllegalArgumentException
Creates a new JilterStatus with a custom error reply code.- Parameters:
rcode- The three-digit (RFC 821/2821) SMTP reply code. rcode cannot be null, and must be a valid 4XX or 5XX reply code.xcode- The extended (RFC 1893/2034) reply code. If xcode is null, no extended code is used. Otherwise, xcode must conform to RFC 1893/2034.messageLines- An array of single lines of text which will be used as the text part of the SMTP reply. If messageLines has zero lines, an empty message is used.- Returns:
- the new status
- Throws:
java.lang.IllegalArgumentException- if rcode or xcode is invalid
-
-