com.dumbster.smtp
Class SmtpResponse

java.lang.Object
  extended bycom.dumbster.smtp.SmtpResponse

public class SmtpResponse
extends java.lang.Object

SMTP response container.


Constructor Summary
SmtpResponse(int code, java.lang.String message, SmtpState next)
          Constructor.
 
Method Summary
 int getCode()
          Get the response code.
 java.lang.String getMessage()
          Get the response message.
 SmtpState getNextState()
          Get the next SMTP server state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmtpResponse

public SmtpResponse(int code,
                    java.lang.String message,
                    SmtpState next)
Constructor.

Parameters:
code - response code
message - response message
next - next state of the SMTP server
Method Detail

getCode

public int getCode()
Get the response code.

Returns:
response code

getMessage

public java.lang.String getMessage()
Get the response message.

Returns:
response message

getNextState

public SmtpState getNextState()
Get the next SMTP server state.

Returns:
state