public final class RelayPath
extends java.lang.Object
SMTPClient| Modifier and Type | Field and Description |
|---|---|
(package private) java.lang.String |
_emailAddress |
(package private) java.util.Vector<java.lang.String> |
_path |
| Constructor and Description |
|---|
RelayPath(java.lang.String emailAddress)
Create a relay path with the specified email address as the ultimate
destination.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRelay(java.lang.String hostname)
Add a mail relay host to the relay path.
|
java.lang.String |
toString()
Return the properly formatted string representation of the relay path.
|
java.util.Vector<java.lang.String> _path
java.lang.String _emailAddress
public RelayPath(java.lang.String emailAddress)
emailAddress - The destination email address.public void addRelay(java.lang.String hostname)
< @bar.com,@foo.com:foobar@foo.com >
path = new RelayPath("foobar@foo.com");
path.addRelay("bar.com");
path.addRelay("foo.com");
hostname - The host to add to the relay path.public java.lang.String toString()
toString in class java.lang.Object