Package mireka.address
Class AddressLiteral
- Object
-
- mireka.address.AddressLiteral
-
- All Implemented Interfaces:
RemotePart
public class AddressLiteral extends Object implements RemotePart
AddressLiteral is a remote part which is specified in IP address format, for example [192.0.2.0] in the john@[192.0.2.0] address.
-
-
Constructor Summary
Constructors Constructor Description AddressLiteral(String smtpText, java.net.InetAddress inetAddress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)inthashCode()java.net.InetAddressinetAddress()StringsmtpText()Returns the raw remote part text, as it was supplied in the SMTP transaction.StringtoString()returns the address literal, including brackets, e.g. [192.0.2.0]
-
-
-
Method Detail
-
inetAddress
public java.net.InetAddress inetAddress()
-
smtpText
public String smtpText()
Description copied from interface:RemotePartReturns the raw remote part text, as it was supplied in the SMTP transaction.- Specified by:
smtpTextin interfaceRemotePart
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceRemotePart- Overrides:
hashCodein classObject
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfaceRemotePart- Overrides:
equalsin classObject
-
toString
public String toString()
returns the address literal, including brackets, e.g. [192.0.2.0]- Overrides:
toStringin classObject
-
-