com.dumbster.smtp

Class SmtpResponse

public class SmtpResponse extends Object

SMTP response container.
Constructor Summary
SmtpResponse(int code, String message, SmtpState next)
Constructor.
Method Summary
intgetCode()
Get the response code.
StringgetMessage()
Get the response message.
SmtpStategetNextState()
Get the next SMTP server state.

Constructor Detail

SmtpResponse

public SmtpResponse(int code, 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 String getMessage()
Get the response message.

Returns: response message

getNextState

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

Returns: state