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
Default SmtpResponse implementation.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
     
    private final java.util.List<java.lang.CharSequence>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    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.
    DefaultSmtpResponse(int code, java.util.List<java.lang.CharSequence> details)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the response code.
    java.util.List<java.lang.CharSequence>
    Returns the details if any.
    boolean
    equals(java.lang.Object o)
     
    int
     
    java.lang.String
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • code

      private final int code
    • details

      private final java.util.List<java.lang.CharSequence> details
  • Constructor Details

    • DefaultSmtpResponse

      public DefaultSmtpResponse(int code)
      Creates a new instance with the given smtp code and no details.
    • DefaultSmtpResponse

      public DefaultSmtpResponse(int code, java.lang.CharSequence... details)
      Creates a new instance with the given smtp code and details.
    • DefaultSmtpResponse

      DefaultSmtpResponse(int code, java.util.List<java.lang.CharSequence> details)
  • Method Details

    • code

      public int code()
      Description copied from interface: SmtpResponse
      Returns the response code.
      Specified by:
      code in interface SmtpResponse
    • details

      public java.util.List<java.lang.CharSequence> details()
      Description copied from interface: SmtpResponse
      Returns the details if any.
      Specified by:
      details in interface SmtpResponse
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • equals

      public boolean equals(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object