public class AddressLiteral extends Object implements RemotePart
Constructor and Description |
---|
AddressLiteral(String smtpText,
java.net.InetAddress inetAddress) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
java.net.InetAddress |
inetAddress() |
String |
smtpText()
Returns the raw remote part text, as it was supplied in the SMTP
transaction.
|
String |
toString()
returns the address literal, including brackets, e.g. [192.0.2.0]
|
public AddressLiteral(String smtpText, java.net.InetAddress inetAddress)
public java.net.InetAddress inetAddress()
public String smtpText()
RemotePart
smtpText
in interface RemotePart
public int hashCode()
hashCode
in interface RemotePart
hashCode
in class Object
public boolean equals(Object obj)
equals
in interface RemotePart
equals
in class Object
public String toString()
toString
in class Object