Package com.dumbster.smtp
Class SmtpResponse
- java.lang.Object
-
- com.dumbster.smtp.SmtpResponse
-
public class SmtpResponse extends java.lang.ObjectSMTP response container.
-
-
Constructor Summary
Constructors Constructor Description SmtpResponse(int code, java.lang.String message, SmtpState next)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()Get the response code.java.lang.StringgetMessage()Get the response message.SmtpStategetNextState()Get the next SMTP server state.
-
-
-
Constructor Detail
-
SmtpResponse
public SmtpResponse(int code, java.lang.String message, SmtpState next)Constructor.- Parameters:
code- response codemessage- response messagenext- 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
-
-