Class AlternateMailbox
- java.lang.Object
-
- microsoft.exchange.webservices.data.autodiscover.AlternateMailbox
-
public final class AlternateMailbox extends Object
Defines the AlternateMailbox class.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDisplayName()Gets the alternate mailbox display name.StringgetLegacyDN()Gets the alternate mailbox legacy DN.StringgetOwnerSmtpAddress()Gets the owner SMTP address.StringgetServer()Gets the alernate mailbox server.StringgetSmtpAddress()Gets the SMTP address.StringgetType()Gets the alternate mailbox type.static AlternateMailboxloadFromXml(EwsXmlReader reader)PLoads AlternateMailbox instance from XML.protected voidsetDisplayName(String displayName)Sets the display name.protected voidsetLegacyDN(String legacyDN)Sets the legacy dn.protected voidsetOwnerSmtpAddress(String ownerSmtpAddress)Sets the owner SMTP address.protected voidsetServer(String server)Sets the server.protected voidsetSmtpAddress(String smtpAddress)Sets the SMTP address.protected voidsetType(String type)Sets the type.
-
-
-
Method Detail
-
loadFromXml
public static AlternateMailbox loadFromXml(EwsXmlReader reader) throws Exception
PLoads AlternateMailbox instance from XML.- Parameters:
reader- the reader- Returns:
- AlternateMailbox
- Throws:
Exception- the exception
-
getDisplayName
public String getDisplayName()
Gets the alternate mailbox display name.- Returns:
- the display name
-
setDisplayName
protected void setDisplayName(String displayName)
Sets the display name.- Parameters:
displayName- the new display name
-
getLegacyDN
public String getLegacyDN()
Gets the alternate mailbox legacy DN.- Returns:
- the legacy dn
-
setLegacyDN
protected void setLegacyDN(String legacyDN)
Sets the legacy dn.- Parameters:
legacyDN- the new legacy dn
-
setServer
protected void setServer(String server)
Sets the server.- Parameters:
server- the new server.
-
getSmtpAddress
public String getSmtpAddress()
Gets the SMTP address.- Returns:
- the SMTP address if available for the mailbox type otherwise null is returned.
-
setSmtpAddress
protected void setSmtpAddress(String smtpAddress)
Sets the SMTP address.- Parameters:
smtpAddress- the new SMTP address.
-
getOwnerSmtpAddress
public String getOwnerSmtpAddress()
Gets the owner SMTP address.- Returns:
- the SMTP address of the owner of this mailbox.
-
setOwnerSmtpAddress
protected void setOwnerSmtpAddress(String ownerSmtpAddress)
Sets the owner SMTP address.- Parameters:
ownerSmtpAddress- the new owner SMTP address
-
-