public final class HookResult extends Object
Constructor and Description |
---|
HookResult(int result)
Construct new HookResult
|
HookResult(int result,
String smtpDescription)
Construct new HookResult
|
HookResult(int result,
String smtpRetCode,
CharSequence smtpDescription)
Construct new HookResult
|
Modifier and Type | Method and Description |
---|---|
static HookResult |
declined() |
static HookResult |
deny() |
static HookResult |
denysoft() |
static HookResult |
disconnect() |
int |
getResult()
Return the result
|
String |
getSmtpDescription()
Return the SMTPDescription which should used.
|
String |
getSmtpRetCode()
Return the SMTPRetCode which should used.
|
static HookResult |
ok() |
public HookResult(int result, String smtpRetCode, CharSequence smtpDescription)
result
- smtpRetCode
- smtpDescription
- public HookResult(int result, String smtpDescription)
result
- smtpDescription
- public HookResult(int result)
result
- public int getResult()
public String getSmtpRetCode()
public String getSmtpDescription()
public static HookResult declined()
public static HookResult ok()
public static HookResult deny()
public static HookResult denysoft()
public static HookResult disconnect()
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.