com.atlassian.confluence.mail.address
Class ConfluenceMailAddress

java.lang.Object
  extended by com.atlassian.confluence.mail.address.ConfluenceMailAddress

public class ConfluenceMailAddress
extends Object

This object is used to house both internet addresses (parsed) and addresses that are invalid. This is to allow us to use toUnicodeString(), getPersonal() and getAddress() which annoyingly is only available in the InternetAddress object.


Constructor Summary
ConfluenceMailAddress(javax.mail.Address addressObject)
           
ConfluenceMailAddress(ConfluenceMailAddress addressObject)
           
ConfluenceMailAddress(javax.mail.internet.InternetAddress addressObject)
           
ConfluenceMailAddress(String fullAddressString)
           
 
Method Summary
 boolean equals(Object o)
           
 String getAddress()
           
 String getPersonal()
           
 String getSender()
           
 int hashCode()
           
 String toString()
           
 String toUnicodeString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfluenceMailAddress

public ConfluenceMailAddress(String fullAddressString)

ConfluenceMailAddress

public ConfluenceMailAddress(javax.mail.internet.InternetAddress addressObject)

ConfluenceMailAddress

public ConfluenceMailAddress(ConfluenceMailAddress addressObject)

ConfluenceMailAddress

public ConfluenceMailAddress(javax.mail.Address addressObject)
Method Detail

getSender

public String getSender()

toUnicodeString

public String toUnicodeString()

getPersonal

public String getPersonal()

getAddress

public String getAddress()

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2003–2015 Atlassian. All rights reserved.