|
AXL MXLookup DNS API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectSplitAddr
A class to extract the three parts of an email address. The parts are the name, address, and port number. A full email address looks like mick@company.com:25, although it's more commonly used without the port number. If the port is missing and will default to 25. If there is only a "name" a default local domain name will be appended.
| Field Summary | |
String |
domain
Email domain name. |
String |
name
Email name. |
String |
port
Email port number. |
int |
portNumber
Email port number. |
| Constructor Summary | |
SplitAddr(String fulladdr)
Split the full address. |
|
SplitAddr(String defaultDomain,
int defaultPortNumber)
Set up the email splitter with some default values. |
|
| Method Summary | |
String |
getDomain()
Get the domain portion of the email address. |
String |
getEmailAddr()
Get the entire email address without the port number. |
String |
getFullEmailAddr()
Get the entire email address with the port number. |
String |
getName()
Get the name portion of the email address. |
String |
getPort()
Get the port number of the address. |
int |
getPortNumber()
Get the port number of the address. |
| Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public String name
public String domain
public String port
public int portNumber
| Constructor Detail |
public SplitAddr(String defaultDomain,
int defaultPortNumber)
defaultDomain - - domain name if not is supplied, eg only a email name is given.defaultPortNumber - - port number for smtp server, if not given 25 is assumed.public SplitAddr(String fulladdr)
fulladdr - - full email address, possibly with a domain name and perhaps a port number.| Method Detail |
public String getName()
public String getDomain()
public String getEmailAddr()
public String getFullEmailAddr()
public String getPort()
public int getPortNumber()
integer
|
AXL MXLookup DNS API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||