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 java.lang.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, java.lang.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.java.util.List<java.lang.CharSequence>details()Returns the details if any.booleanequals(java.lang.Object o)inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
code
public int code()
Description copied from interface:SmtpResponseReturns the response code.- Specified by:
codein interfaceSmtpResponse
-
details
public java.util.List<java.lang.CharSequence> details()
Description copied from interface:SmtpResponseReturns the details if any.- Specified by:
detailsin interfaceSmtpResponse
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-