public class CustomMilterStatus extends Object implements IMilterStatus
SMFIS_ACCEPT, SMFIS_CONTINUE, SMFIS_DISCARD, SMFIS_NOREPLY, SMFIS_REJECT, SMFIS_SKIP, SMFIS_TEMPFAIL| Constructor and Description |
|---|
CustomMilterStatus(String rcode,
String xcode,
String[] messageLines)
Creates a new IMilterStatus with a custom error reply code.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
ByteBuffer |
getMessage() |
public CustomMilterStatus(String rcode, String xcode, String[] messageLines) throws 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.IllegalArgumentException - if rcode or xcode is invalidpublic int getCode()
getCode in interface IMilterStatuspublic ByteBuffer getMessage()
getMessage in interface IMilterStatusCopyright © 2016. All rights reserved.