public abstract class JilterStatus
extends java.lang.Object
JilterHandler
.Modifier and Type | Field and Description |
---|---|
static JilterStatus |
SMFIS_ACCEPT
Acceptance.
|
static JilterStatus |
SMFIS_CONTINUE
Continue processing the current connection, message, or recipient.
|
static JilterStatus |
SMFIS_DISCARD
Message discard.
|
static JilterStatus |
SMFIS_REJECT
Rejection.
|
static JilterStatus |
SMFIS_TEMPFAIL
Return a temporary failure, i.e., the corresponding SMTP command will return an appropriate 4xx status code.
|
Modifier | Constructor and Description |
---|---|
protected |
JilterStatus() |
Modifier and Type | Method and Description |
---|---|
static JilterStatus |
makeCustomStatus(java.lang.String rcode,
java.lang.String xcode,
java.lang.String[] messageLines)
Creates a new JilterStatus with a custom error reply code.
|
abstract void |
sendReplyPacket(java.nio.channels.WritableByteChannel writeChannel) |
public static final JilterStatus SMFIS_CONTINUE
public static final JilterStatus SMFIS_REJECT
public static final JilterStatus SMFIS_DISCARD
SMFIS_DISCARD
should not be returned by a connection-oriented routine.public static final JilterStatus SMFIS_ACCEPT
close
.
For a message- or recipient-oriented routine, accept this message without further filtering.public static final JilterStatus SMFIS_TEMPFAIL
envfrom
), fail for this message.
For a connection-oriented routine, fail for this connection; call close
.
For a recipient-oriented routine, only fail for the current recipient; continue message processing.public abstract void sendReplyPacket(java.nio.channels.WritableByteChannel writeChannel) throws java.io.IOException
java.io.IOException
public static JilterStatus makeCustomStatus(java.lang.String rcode, java.lang.String xcode, java.lang.String[] messageLines) throws java.lang.IllegalArgumentException
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.java.lang.IllegalArgumentException
- if rcode or xcode is invalidCopyright ? 2001-2004, Sendmail, Inc. All Rights Reserved.