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 Object implements SmtpRequest
DefaultSmtpRequest
implementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultSmtpRequest(SmtpCommand command)
Creates a new instance with the given command and no parameters.DefaultSmtpRequest(SmtpCommand command, CharSequence... parameters)
Creates a new instance with the given command and parameters.DefaultSmtpRequest(CharSequence command, 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 SmtpCommand
command()
Returns theSmtpCommand
that belongs to the request.boolean
equals(Object o)
int
hashCode()
List<CharSequence>
parameters()
Returns aList
which holds all the parameters of a request, which may be an empty list.String
toString()
-
-
-
Constructor Detail
-
DefaultSmtpRequest
public DefaultSmtpRequest(SmtpCommand command)
Creates a new instance with the given command and no parameters.
-
DefaultSmtpRequest
public DefaultSmtpRequest(SmtpCommand command, CharSequence... parameters)
Creates a new instance with the given command and parameters.
-
DefaultSmtpRequest
public DefaultSmtpRequest(CharSequence command, CharSequence... parameters)
Creates a new instance with the given command and parameters.
-
-
Method Detail
-
command
public SmtpCommand command()
Description copied from interface:SmtpRequest
Returns theSmtpCommand
that belongs to the request.- Specified by:
command
in interfaceSmtpRequest
-
parameters
public List<CharSequence> parameters()
Description copied from interface:SmtpRequest
Returns aList
which holds all the parameters of a request, which may be an empty list.- Specified by:
parameters
in interfaceSmtpRequest
-
-