Package io.netty.handler.codec.smtp
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
DefaultSmtpRequestimplementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultSmtpRequest(SmtpCommand command)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(java.lang.CharSequence command, java.lang.CharSequence... parameters)Creates a new instance with the given command and parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SmtpCommandcommand()Returns theSmtpCommandthat belongs to the request.booleanequals(java.lang.Object o)inthashCode()java.util.List<java.lang.CharSequence>parameters()Returns aListwhich holds all the parameters of a request, which may be an empty list.java.lang.StringtoString()
-
-
-
Constructor Detail
-
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.
-
-
Method Detail
-
command
public SmtpCommand command()
Description copied from interface:SmtpRequestReturns theSmtpCommandthat belongs to the request.- Specified by:
commandin interfaceSmtpRequest
-
parameters
public java.util.List<java.lang.CharSequence> parameters()
Description copied from interface:SmtpRequestReturns aListwhich holds all the parameters of a request, which may be an empty list.- Specified by:
parametersin interfaceSmtpRequest
-
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
-
-