Package mireka.address
Class Domain
- Object
-
- mireka.address.Domain
-
public class Domain extends ObjectIt represents an absolute domain name.
-
-
Constructor Summary
Constructors Constructor Description Domain(String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)inthashCode()StringsmtpText()Returns the raw domain text, as it was supplied in the SMTP transaction.org.xbill.DNS.NametoName()converts this value to a dnsjava absolute domain name, assuming that the name represented by this object is absolute.StringtoString()
-
-
-
Method Detail
-
smtpText
public String smtpText()
Returns the raw domain text, as it was supplied in the SMTP transaction.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classObject
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classObject
-
toString
public String toString()
- Overrides:
toStringin classObject
-
toName
public org.xbill.DNS.Name toName() throws RuntimeExceptionconverts this value to a dnsjava absolute domain name, assuming that the name represented by this object is absolute. Domains must be absolute in SMTP, except perhaps in a submission server.- Throws:
RuntimeException- if the name in this object is syntactically invalid as a domain name
-
-