Class DefaultSmtpRequest
java.lang.Object
io.netty.handler.codec.smtp.DefaultSmtpRequest
- All Implemented Interfaces:
SmtpRequest
Default
SmtpRequest implementation.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SmtpCommandprivate final java.util.List<java.lang.CharSequence> -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSmtpRequest(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(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 TypeMethodDescriptioncommand()Returns theSmtpCommandthat belongs to the request.booleanequals(java.lang.Object o) inthashCode()java.util.List<java.lang.CharSequence> Returns aListwhich holds all the parameters of a request, which may be an empty list.java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
command
-
parameters
private final java.util.List<java.lang.CharSequence> parameters
-
-
Constructor Details
-
DefaultSmtpRequest
Creates a new instance with the given command and no parameters. -
DefaultSmtpRequest
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
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
-