|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.ExchangeServiceBase
microsoft.exchange.webservices.data.AutodiscoverService
public final class AutodiscoverService
Represents a binding to the Exchange Autodiscover Service.
| Field Summary | |
|---|---|
protected static int |
AutodiscoverMaxRedirections
The Constant AutodiscoverMaxRedirections. |
| Constructor Summary | |
|---|---|
|
AutodiscoverService()
Initializes a new instance of the "AutodiscoverService" class. |
protected |
AutodiscoverService(ExchangeServiceBase service)
Initializes a new instance of the "AutodiscoverService" class. |
protected |
AutodiscoverService(ExchangeServiceBase service,
ExchangeVersion requestedServerVersion)
Initializes a new instance of the AutodiscoverService class. |
|
AutodiscoverService(ExchangeVersion requestedServerVersion)
Initializes a new instance of the "AutodiscoverService" class. |
|
AutodiscoverService(String domain)
Initializes a new instance of the "AutodiscoverService" class. |
|
AutodiscoverService(String domain,
ExchangeVersion requestedServerVersion)
Initializes a new instance of the "AutodiscoverService" class. |
|
AutodiscoverService(URI url)
Initializes a new instance of the "AutodiscoverService" class. |
|
AutodiscoverService(URI url,
ExchangeVersion requestedServerVersion)
Initializes a new instance of the "AutodiscoverService" class. |
protected |
AutodiscoverService(URI url,
String domain)
Initializes a new instance of the "AutodiscoverService" class. |
protected |
AutodiscoverService(URI url,
String domain,
ExchangeVersion requestedServerVersion)
Initializes a new instance of the "AutodiscoverService" class. |
| Method Summary | ||
|---|---|---|
boolean |
autodiscoverRedirectionUrlValidationCallback(String redirectionUrl)
Autodiscover redirection url validation callback. |
|
Object |
func(List arg1,
List arg2,
ExchangeVersion arg3,
URI arg4)
Func. |
|
protected List<String> |
getAutodiscoverServiceHosts(String domainName,
OutParam<Integer> outParam)
Gets the list of autodiscover service hosts. |
|
protected List<URI> |
getAutodiscoverServiceUrls(String domainName,
OutParam<Integer> scpHostCount)
Gets the list of autodiscover service URLs. |
|
protected String |
getDnsServerAddress()
Gets the dns server address. |
|
String |
getDomain()
Gets the domain this service is bound to. |
|
GetDomainSettingsResponseCollection |
getDomainSettings(Iterable<String> domains,
ExchangeVersion requestedVersion,
DomainSettingName... domainSettingNames)
Retrieves the specified settings for a set of domains. |
|
protected GetDomainSettingsResponseCollection |
getDomainSettings(List<String> domains,
List<DomainSettingName> settings,
ExchangeVersion requestedVersion)
Gets the domain settings using Autodiscover SOAP service. |
|
GetDomainSettingsResponse |
getDomainSettings(String domain,
ExchangeVersion requestedVersion,
DomainSettingName... domainSettingNames)
Retrieves the specified settings for a domain. |
|
boolean |
getEnableScpLookup()
Gets a value indicating whether the AutodiscoverService should perform SCP (ServiceConnectionPoint) record lookup when determining the Autodiscover service URL. |
|
protected
|
getLegacyUserSettings(Class<TSettings> cls,
String emailAddress)
Calls the legacy Autodiscover service to retrieve configuration settings. |
|
protected URI |
getRedirectionUrlFromDnsSrvRecord(String domainName)
Get an autodiscover SRV record in DNS and construct autodiscover URL. |
|
IAutodiscoverRedirectionUrl |
getRedirectionUrlValidationCallback()
Gets the redirection url validation callback. |
|
URI |
getUrl()
Gets the url this service is bound to. |
|
protected GetUserSettingsResponseCollection |
getUserSettings(List<String> smtpAddresses,
List<UserSettingName> settings)
Gets the user settings using Autodiscover SOAP service. |
|
GetUserSettingsResponse |
getUserSettings(String userSmtpAddress,
UserSettingName... userSettingNames)
Retrieves the specified settings for single SMTP address. |
|
GetUserSettingsResponseCollection |
getUsersSettings(Iterable<String> userSmtpAddresses,
UserSettingName... userSettingNames)
Retrieves the specified settings for a set of users. |
|
protected GetUserSettingsResponse |
internalGetLegacyUserSettings(String emailAddress,
List<UserSettingName> requestedSettings)
Gets user settings from Autodiscover legacy endpoint. |
|
protected GetUserSettingsResponse |
internalGetSoapUserSettings(String smtpAddress,
List<UserSettingName> requestedSettings)
Calls the SOAP Autodiscover service for user settings for a single SMTP address. |
|
Boolean |
isExternal()
|
|
protected microsoft.exchange.webservices.data.HttpWebRequest |
prepareHttpWebRequestForUrl(URI url)
Creates an HttpWebRequest instance and initializes it with the appropriate parameters, based on the configuration of this service object. |
|
protected void |
processHttpErrorResponse(microsoft.exchange.webservices.data.HttpWebRequest httpWebResponse,
Exception webException)
Processes an HTTP error response. |
|
protected void |
setDnsServerAddress(String value)
Sets the dns server address. |
|
void |
setDomain(String value)
Sets the domain this service is bound to. |
|
void |
setEnableScpLookup(boolean value)
Sets the enable scp lookup. |
|
protected void |
setIsExternal(Boolean value)
|
|
void |
setRedirectionUrlValidationCallback(IAutodiscoverRedirectionUrl value)
Sets the redirection url validation callback. |
|
void |
setUrl(URI value)
Sets the url this service is bound to. |
|
protected void |
traceResponse(microsoft.exchange.webservices.data.HttpWebRequest request,
ByteArrayOutputStream memoryStream)
Traces the response. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final int AutodiscoverMaxRedirections
| Constructor Detail |
|---|
public AutodiscoverService()
throws ArgumentException
ArgumentException
public AutodiscoverService(ExchangeVersion requestedServerVersion)
throws ArgumentException
requestedServerVersion - The requested server version.
ArgumentException
public AutodiscoverService(String domain)
throws ArgumentException
domain - The domain that will be used to determine the URL of the
service.
ArgumentException
public AutodiscoverService(String domain,
ExchangeVersion requestedServerVersion)
throws ArgumentException
domain - The domain that will be used to determine the URL of the
service.requestedServerVersion - The requested server version.
ArgumentException
public AutodiscoverService(URI url)
throws ArgumentException
url - The URL of the service.
ArgumentException
public AutodiscoverService(URI url,
ExchangeVersion requestedServerVersion)
throws ArgumentException
url - The URL of the service.requestedServerVersion - The requested server version.
ArgumentException
protected AutodiscoverService(URI url,
String domain)
throws ArgumentException
url - The URL of the service.domain - The domain that will be used to determine the URL of the
service.
ArgumentException
protected AutodiscoverService(URI url,
String domain,
ExchangeVersion requestedServerVersion)
throws ArgumentException
url - The URL of the service.domain - The domain that will be used to determine the URL of the
service.requestedServerVersion - The requested server version.
ArgumentException
protected AutodiscoverService(ExchangeServiceBase service,
ExchangeVersion requestedServerVersion)
service - The other service.requestedServerVersion - The requested server version.protected AutodiscoverService(ExchangeServiceBase service)
service - The service.| Method Detail |
|---|
protected <TSettings extends microsoft.exchange.webservices.data.ConfigurationSettingsBase> TSettings getLegacyUserSettings(Class<TSettings> cls,
String emailAddress)
throws Exception
TSettings - the generic typecls - the clsemailAddress - The email address to retrieve configuration settings for.
Exception - the exception
protected URI getRedirectionUrlFromDnsSrvRecord(String domainName)
throws Exception
domainName - Name of the domain.
Exception - the exception
protected GetUserSettingsResponse internalGetLegacyUserSettings(String emailAddress,
List<UserSettingName> requestedSettings)
throws Exception
emailAddress - The email address to use.requestedSettings - The requested settings.
Exception
protected GetUserSettingsResponse internalGetSoapUserSettings(String smtpAddress,
List<UserSettingName> requestedSettings)
throws Exception
smtpAddress - SMTP address.requestedSettings - The requested settings.
Exception
protected GetUserSettingsResponseCollection getUserSettings(List<String> smtpAddresses,
List<UserSettingName> settings)
throws Exception
smtpAddresses - The SMTP addresses of the users.settings - The settings.
Exception - the exception
protected GetDomainSettingsResponseCollection getDomainSettings(List<String> domains,
List<DomainSettingName> settings,
ExchangeVersion requestedVersion)
throws Exception
domains - The domains.settings - The settings.requestedVersion - Requested version of the Exchange service.
Exception - the exception
protected List<URI> getAutodiscoverServiceUrls(String domainName,
OutParam<Integer> scpHostCount)
throws URISyntaxException
domainName - Domain name.scpHostCount - Count of hosts found via SCP lookup.
URISyntaxException - the URI Syntax exception
protected List<String> getAutodiscoverServiceHosts(String domainName,
OutParam<Integer> outParam)
throws URISyntaxException,
ClassNotFoundException
domainName - Domain name.outParam - the out param
URISyntaxException - the uRI syntax exception
ClassNotFoundException - the class not found exception
protected void traceResponse(microsoft.exchange.webservices.data.HttpWebRequest request,
ByteArrayOutputStream memoryStream)
throws XMLStreamException,
IOException,
EWSHttpException
request - the requestmemoryStream - the memory stream
XMLStreamException - the xML stream exception
IOException - Signals that an I/O exception has occurred.
EWSHttpException - the eWS http exception
protected microsoft.exchange.webservices.data.HttpWebRequest prepareHttpWebRequestForUrl(URI url)
throws ServiceLocalException,
URISyntaxException
url - The URL that the HttpWebRequest should target.
ServiceLocalException - the service local exception
URISyntaxException - the uRI syntax exception
protected void processHttpErrorResponse(microsoft.exchange.webservices.data.HttpWebRequest httpWebResponse,
Exception webException)
throws Exception
processHttpErrorResponse in class ExchangeServiceBasehttpWebResponse - The HTTP web response.
Exception - the exception
public boolean autodiscoverRedirectionUrlValidationCallback(String redirectionUrl)
throws AutodiscoverLocalException
IAutodiscoverRedirectionUrl
autodiscoverRedirectionUrlValidationCallback in interface IAutodiscoverRedirectionUrlredirectionUrl - the redirection url
AutodiscoverLocalException - the autodiscover local exception
public GetUserSettingsResponse getUserSettings(String userSmtpAddress,
UserSettingName... userSettingNames)
throws Exception
userSmtpAddress - The SMTP addresses of the user.userSettingNames - The user setting names.
Exception - the exception
This method handles will run the entire Autodiscover "discovery"
algorithm and will follow address and URL redirections.
public GetUserSettingsResponseCollection getUsersSettings(Iterable<String> userSmtpAddresses,
UserSettingName... userSettingNames)
throws Exception
userSmtpAddresses - the user smtp addressesuserSettingNames - The user setting names.
Exception - the exception
public GetDomainSettingsResponse getDomainSettings(String domain,
ExchangeVersion requestedVersion,
DomainSettingName... domainSettingNames)
throws Exception
domain - The domain.requestedVersion - Requested version of the Exchange service.domainSettingNames - The domain setting names.
Exception - the exception
public GetDomainSettingsResponseCollection getDomainSettings(Iterable<String> domains,
ExchangeVersion requestedVersion,
DomainSettingName... domainSettingNames)
throws Exception
domains - the domainsrequestedVersion - Requested version of the Exchange service.domainSettingNames - The domain setting names.
Exception - the exceptionpublic String getDomain()
public void setDomain(String value)
throws ArgumentException
value - the new domain
ArgumentExceptionpublic URI getUrl()
public void setUrl(URI value)
value - the new urlpublic Boolean isExternal()
protected void setIsExternal(Boolean value)
public IAutodiscoverRedirectionUrl getRedirectionUrlValidationCallback()
public void setRedirectionUrlValidationCallback(IAutodiscoverRedirectionUrl value)
value - the new redirection url validation callbackprotected String getDnsServerAddress()
protected void setDnsServerAddress(String value)
value - the new dns server addresspublic boolean getEnableScpLookup()
public void setEnableScpLookup(boolean value)
value - the new enable scp lookup
public Object func(List arg1,
List arg2,
ExchangeVersion arg3,
URI arg4)
throws ServiceLocalException,
Exception
arg1 - the arg1arg2 - the arg2arg3 - the arg3
AutodiscoverLocalException - the autodiscover local exception
ServiceLocalException - the service local exception
XMLStreamException - the xML stream exception
IOException - Signals that an I/O exception has occurred.
Exception - the exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||