|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.abstracthorizon.mercury.smtp.util.Path
public class Path
This class represents path to mailbox. It stores mailbox name and domain and is used for storing JavaMail folder when (if) mailbox is found.
Constructor Summary | |
---|---|
Path()
Constructor |
|
Path(String mailbox,
String domain)
Constructor |
Method Summary | |
---|---|
void |
addReturnPath(String returnPath)
Adds new element to return path |
boolean |
equals(Object o)
Returns true if two objects are same |
String |
getDomain()
Returns domain |
javax.mail.Folder |
getFolder()
Returns destination folder (or null) |
String |
getMailbox()
Returns mailbox |
String[] |
getReturnPath()
Returns return path as string array |
int |
hashCode()
Returns hash code as sum of mailbox and domain hash codes |
boolean |
isLocalDomain()
Returns if it is local domain |
boolean |
isLocalMailbox()
Returns true if it is local mailbox |
void |
setDomain(String domain)
Sets domain |
void |
setFolder(javax.mail.Folder folder)
Sets destination folder |
void |
setLocalDomain(boolean localDomain)
Sets if it is local domain |
void |
setMailbox(String mailbox)
Sets mailbox |
String |
toMailboxString()
Returns string representation |
String |
toString()
Returns string representation |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Path()
public Path(String mailbox, String domain)
mailbox
- mailbox namedomain
- mailbox domainMethod Detail |
---|
public String getMailbox()
public void setMailbox(String mailbox)
mailbox
- mailboxpublic String getDomain()
public void setDomain(String domain)
domain
- domainpublic String[] getReturnPath()
public void addReturnPath(String returnPath)
returnPath
- new element to be addedpublic void setLocalDomain(boolean localDomain)
localDomain
- local domainpublic boolean isLocalDomain()
true
if it is local domainpublic boolean isLocalMailbox()
true
if it is local mailbox
true
if it is local mailboxpublic void setFolder(javax.mail.Folder folder)
folder
- destination folderpublic javax.mail.Folder getFolder()
public String toMailboxString()
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object o)
true
if two objects are same
equals
in class Object
o
- other object
true
if two objects are same
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |