Class DefaultSmtpRequest

java.lang.Object
io.netty.handler.codec.smtp.DefaultSmtpRequest
All Implemented Interfaces:
SmtpRequest

@UnstableApi public final class DefaultSmtpRequest extends java.lang.Object implements SmtpRequest
Default SmtpRequest implementation.
  • Field Summary

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

    Constructors
    Constructor
    Description
    Creates a new instance with the given command and no parameters.
    DefaultSmtpRequest(SmtpCommand command, java.lang.CharSequence... parameters)
    Creates a new instance with the given command and parameters.
    DefaultSmtpRequest(SmtpCommand command, java.util.List<java.lang.CharSequence> parameters)
     
    DefaultSmtpRequest(java.lang.CharSequence command, java.lang.CharSequence... parameters)
    Creates a new instance with the given command and parameters.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the SmtpCommand that belongs to the request.
    boolean
    equals(java.lang.Object o)
     
    int
     
    java.util.List<java.lang.CharSequence>
    Returns a List which holds all the parameters of a request, which may be an empty list.
    java.lang.String
     

    Methods inherited from class java.lang.Object

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

    • command

      private final SmtpCommand command
    • parameters

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

    • DefaultSmtpRequest

      public DefaultSmtpRequest(SmtpCommand command)
      Creates a new instance with the given command and no parameters.
    • DefaultSmtpRequest

      public DefaultSmtpRequest(SmtpCommand command, java.lang.CharSequence... parameters)
      Creates a new instance with the given command and parameters.
    • DefaultSmtpRequest

      public DefaultSmtpRequest(java.lang.CharSequence command, java.lang.CharSequence... parameters)
      Creates a new instance with the given command and parameters.
    • DefaultSmtpRequest

      DefaultSmtpRequest(SmtpCommand command, java.util.List<java.lang.CharSequence> parameters)
  • Method Details

    • command

      public SmtpCommand command()
      Description copied from interface: SmtpRequest
      Returns the SmtpCommand that belongs to the request.
      Specified by:
      command in interface SmtpRequest
    • parameters

      public java.util.List<java.lang.CharSequence> parameters()
      Description copied from interface: SmtpRequest
      Returns a List which holds all the parameters of a request, which may be an empty list.
      Specified by:
      parameters in interface SmtpRequest
    • 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