Package io.netty.handler.codec.smtp
Class DefaultSmtpResponse
java.lang.Object
io.netty.handler.codec.smtp.DefaultSmtpResponse
- All Implemented Interfaces:
SmtpResponse
Default
SmtpResponse
implementation.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSmtpResponse
(int code) Creates a new instance with the given smtp code and no details.DefaultSmtpResponse
(int code, CharSequence... details) Creates a new instance with the given smtp code and details.DefaultSmtpResponse
(int code, List<CharSequence> details) -
Method Summary
-
Field Details
-
code
private final int code -
details
-
-
Constructor Details
-
DefaultSmtpResponse
public DefaultSmtpResponse(int code) Creates a new instance with the given smtp code and no details. -
DefaultSmtpResponse
Creates a new instance with the given smtp code and details. -
DefaultSmtpResponse
DefaultSmtpResponse(int code, List<CharSequence> details)
-
-
Method Details
-
code
public int code()Description copied from interface:SmtpResponse
Returns the response code.- Specified by:
code
in interfaceSmtpResponse
-
details
Description copied from interface:SmtpResponse
Returns the details if any.- Specified by:
details
in interfaceSmtpResponse
-
hashCode
public int hashCode() -
equals
-
toString
-