org.apache.james.protocols.smtp.hook
Class HookResult

java.lang.Object
  extended by org.apache.james.protocols.smtp.hook.HookResult

public final class HookResult
extends Object

Result which get used for hooks


Constructor Summary
HookResult(int result)
          Construct new HookResult
HookResult(int result, String smtpDescription)
          Construct new HookResult
HookResult(int result, String smtpRetCode, CharSequence smtpDescription)
          Construct new HookResult
 
Method Summary
 int getResult()
          Return the result
 String getSmtpDescription()
          Return the SMTPDescription which should used.
 String getSmtpRetCode()
          Return the SMTPRetCode which should used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HookResult

public HookResult(int result,
                  String smtpRetCode,
                  CharSequence smtpDescription)
Construct new HookResult

Parameters:
result -
smtpRetCode -
smtpDescription -

HookResult

public HookResult(int result,
                  String smtpDescription)
Construct new HookResult

Parameters:
result -
smtpDescription -

HookResult

public HookResult(int result)
Construct new HookResult

Parameters:
result -
Method Detail

getResult

public int getResult()
Return the result

Returns:
result

getSmtpRetCode

public String getSmtpRetCode()
Return the SMTPRetCode which should used. If not set return null.

Returns:
smtpRetCode

getSmtpDescription

public String getSmtpDescription()
Return the SMTPDescription which should used. If not set return null

Returns:
smtpDescription


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.