Package io.netty.handler.codec.smtp
Class DefaultSmtpResponse
- java.lang.Object
-
- io.netty.handler.codec.smtp.DefaultSmtpResponse
-
- All Implemented Interfaces:
SmtpResponse
@UnstableApi public final class DefaultSmtpResponse extends Object implements SmtpResponse
DefaultSmtpResponseimplementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultSmtpResponse(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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcode()Returns the response code.List<CharSequence>details()Returns the details if any.booleanequals(Object o)inthashCode()StringtoString()
-
-
-
Constructor Detail
-
DefaultSmtpResponse
public DefaultSmtpResponse(int code)
Creates a new instance with the given smtp code and no details.
-
DefaultSmtpResponse
public DefaultSmtpResponse(int code, CharSequence... details)Creates a new instance with the given smtp code and details.
-
-
Method Detail
-
code
public int code()
Description copied from interface:SmtpResponseReturns the response code.- Specified by:
codein interfaceSmtpResponse
-
details
public List<CharSequence> details()
Description copied from interface:SmtpResponseReturns the details if any.- Specified by:
detailsin interfaceSmtpResponse
-
-