com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class AutodiscoverService



  • public final class AutodiscoverService
    extends AutodiscoverServiceBase

    Represents a binding to the Exchange Autodiscover Service.

    • Constructor Detail

      • AutodiscoverService

        public AutodiscoverService()

        Initializes a new instance of the AutodiscoverService class.

      • AutodiscoverService

        public AutodiscoverService(Integer requestedServerVersion)

        Initializes a new instance of the AutodiscoverService class.

        Parameters:
        requestedServerVersion - The requested server version.
      • AutodiscoverService

        public AutodiscoverService(String domain)

        Initializes a new instance of the AutodiscoverService class.

        Parameters:
        domain - The domain that will be used to determine the URL of the service.
      • AutodiscoverService

        public AutodiscoverService(String domain,
                           Integer requestedServerVersion)

        Initializes a new instance of the AutodiscoverService class.

        Parameters:
        domain - The domain that will be used to determine the URL of the service.
        requestedServerVersion - The requested server version.
      • AutodiscoverService

        public AutodiscoverService(URI url)

        Initializes a new instance of the AutodiscoverService class.

        Parameters:
        url - The URL of the service.
      • AutodiscoverService

        public AutodiscoverService(URI url,
                           Integer requestedServerVersion)

        Initializes a new instance of the AutodiscoverService class.

        Parameters:
        url - The URL of the service.
        requestedServerVersion - The requested server version.
    • Method Detail

      • getUserSettings

        public final GetUserSettingsResponse getUserSettings(String userSmtpAddress,
                                              Integer... userSettingNames)

        Retrieves the specified settings for single SMTP address.

        Parameters:
        userSmtpAddress - The SMTP addresses of the user.
        userSettingNames - The user setting names.


        This method handles will run the entire Autodiscover "discovery" algorithm and will follow address and URL redirections.

        Returns:
        A UserResponse object containing the requested settings for the specified user.
      • getUsersSettings

        public final GetUserSettingsResponseCollection getUsersSettings(com.aspose.ms.System.Collections.Generic.IGenericEnumerable<String> userSmtpAddresses,
                                                         Integer... userSettingNames)

        Retrieves the specified settings for a set of users.

        Parameters:
        userSmtpAddresses - The SMTP addresses of the users.
        userSettingNames - The user setting names.
        Returns:
        A GetUserSettingsResponseCollection object containing the responses for each individual user.
      • getDomain

        public final String getDomain()

        Gets or sets the domain this service is bound to. When this property is set, the domain name is used to automatically determine the Autodiscover service URL.

      • setDomain

        public final void setDomain(String value)

        Gets or sets the domain this service is bound to. When this property is set, the domain name is used to automatically determine the Autodiscover service URL.

      • getUrl

        public final URI getUrl()

        Gets or sets the URL this service is bound to.

      • setUrl

        public final void setUrl(URI value)

        Gets or sets the URL this service is bound to.

      • isExternal

        public final Boolean isExternal()

        Gets a value indicating whether the Autodiscover service that URL points to is internal (inside the corporate network) or external (outside the corporate network).


        IsExternal is null in the following cases: - This instance has been created with a domain name and no method has been called, - This instance has been created with a URL.

      • getRedirectionUrlValidationCallback

        public final AutodiscoverRedirectionUrlValidationCallback getRedirectionUrlValidationCallback()

        Gets or sets the redirection URL validation callback.

        Value: The redirection URL validation callback.
      • setRedirectionUrlValidationCallback

        public final void setRedirectionUrlValidationCallback(AutodiscoverRedirectionUrlValidationCallback value)

        Gets or sets the redirection URL validation callback.

        Value: The redirection URL validation callback.
      • getEnableScpLookup

        public final boolean getEnableScpLookup()

        Gets or sets a value indicating whether the AutodiscoverService should perform SCP (ServiceConnectionPoint) record lookup when determining the Autodiscover service URL.

      • setEnableScpLookup

        public final void setEnableScpLookup(boolean value)

        Gets or sets a value indicating whether the AutodiscoverService should perform SCP (ServiceConnectionPoint) record lookup when determining the Autodiscover service URL.