AutodiscoverService

Inheritance: java.lang.Object, com.aspose.email.AutodiscoverServiceBase

public final class AutodiscoverService extends AutodiscoverServiceBase

Represents a binding to the Exchange Autodiscover Service.

Constructors

ConstructorDescription
AutodiscoverService()Initializes a new instance of the AutodiscoverService class.
AutodiscoverService(Integer requestedServerVersion)Initializes a new instance of the AutodiscoverService class.
AutodiscoverService(String domain)Initializes a new instance of the AutodiscoverService class.
AutodiscoverService(String domain, Integer requestedServerVersion)Initializes a new instance of the AutodiscoverService class.
AutodiscoverService(URI url)Initializes a new instance of the AutodiscoverService class.
AutodiscoverService(URI url, Integer requestedServerVersion)Initializes a new instance of the AutodiscoverService class.

Fields

FieldDescription
OnSerializeCustomSoapHeaders

Methods

MethodDescription
equals(Object arg0)
getAcceptGzipEncoding()Gets or sets a value indicating whether GZip compression encoding should be accepted.
getClass()
getClientRequestId()Gets or sets the request id for the request.
getConnectionGroupName()Gets or sets the name of the connection group for the request.
getCredentials()Gets or sets the credentials used to authenticate with the Exchange Web Services.
getDomain()Gets or sets the domain this service is bound to.
getEnableScpLookup()Gets or sets a value indicating whether the AutodiscoverService should perform SCP (ServiceConnectionPoint) record lookup when determining the Autodiscover service URL.
getHttpHeaders()Gets a collection of HTTP headers that will be sent with each request to EWS.
getHttpResponseHeaders()Gets a collection of HTTP headers from the last response.
getKeepAlive()Gets or sets if the request to the internet resource should contain a Connection HTTP header with the value Keep-alive
getLogFileName()Gets or sets log file name
getPreAuthenticate()Gets or sets a value that indicates whether HTTP pre-authentication should be performed.
getRedirectionUrlValidationCallback()Gets or sets the redirection URL validation callback.
getRequestedServerVersion()Gets the requested server version.
getReturnClientRequestId()Gets or sets a flag to indicate whether the client requires the server side to return the request id.
getSendClientLatencies()Gets or sets a value indicating whether client latency info is push to server.
getServerInfo()Gets information associated with the server that processed the last request.
getTimeout()Gets or sets the timeout used when sending HTTP requests and when receiving HTTP responses, in milliseconds.
getUrl()Gets or sets the URL this service is bound to.
getUseDateInLogFileName()Gets or sets value which indicates if date has to be used in log file name.
getUseDefaultCredentials()Gets or sets a value indicating whether the credentials of the user currently logged into Windows should be used to authenticate with the Exchange Web Services.
getUserAgent()Gets or sets the user agent.
getUserSettings(String userSmtpAddress, Integer[] userSettingNames)Retrieves the specified settings for single SMTP address.
getUsersSettings(System.Collections.Generic.IGenericEnumerable userSmtpAddresses, Integer[] userSettingNames)Retrieves the specified settings for a set of users.
getWebProxy()Gets or sets the web proxy that should be used when sending requests to EWS.
hashCode()
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).
notify()
notifyAll()
setAcceptGzipEncoding(boolean value)Gets or sets a value indicating whether GZip compression encoding should be accepted.
setClientRequestId(String value)Gets or sets the request id for the request.
setConnectionGroupName(String value)Gets or sets the name of the connection group for the request.
setCredentials(System.Net.ICredentials value)Gets or sets the credentials used to authenticate with the Exchange Web Services.
setDomain(String value)Gets or sets the domain this service is bound to.
setEnableScpLookup(boolean value)Gets or sets a value indicating whether the AutodiscoverService should perform SCP (ServiceConnectionPoint) record lookup when determining the Autodiscover service URL.
setKeepAlive(boolean value)Gets or sets if the request to the internet resource should contain a Connection HTTP header with the value Keep-alive
setLogFileName(String value)Gets or sets log file name
setPreAuthenticate(boolean value)Gets or sets a value that indicates whether HTTP pre-authentication should be performed.
setRedirectionUrlValidationCallback(AutodiscoverRedirectionUrlValidationCallback value)Gets or sets the redirection URL validation callback.
setReturnClientRequestId(boolean value)Gets or sets a flag to indicate whether the client requires the server side to return the request id.
setSendClientLatencies(boolean value)Gets or sets a value indicating whether client latency info is push to server.
setTimeout(int value)Gets or sets the timeout used when sending HTTP requests and when receiving HTTP responses, in milliseconds.
setUrl(URI value)Gets or sets the URL this service is bound to.
setUseDateInLogFileName(boolean value)Gets or sets value which indicates if date has to be used in log file name.
setUseDefaultCredentials(boolean value)Gets or sets a value indicating whether the credentials of the user currently logged into Windows should be used to authenticate with the Exchange Web Services.
setUserAgent(String value)Gets or sets the user agent.
setWebProxy(System.Net.IWebProxy value)Gets or sets the web proxy that should be used when sending requests to EWS.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

AutodiscoverService()

public AutodiscoverService()

Initializes a new instance of the AutodiscoverService class.

AutodiscoverService(Integer requestedServerVersion)

public AutodiscoverService(Integer requestedServerVersion)

Initializes a new instance of the AutodiscoverService class.

Parameters:

ParameterTypeDescription
requestedServerVersionjava.lang.IntegerThe requested server version.

AutodiscoverService(String domain)

public AutodiscoverService(String domain)

Initializes a new instance of the AutodiscoverService class.

Parameters:

ParameterTypeDescription
domainjava.lang.StringThe domain that will be used to determine the URL of the service.

AutodiscoverService(String domain, Integer requestedServerVersion)

public AutodiscoverService(String domain, Integer requestedServerVersion)

Initializes a new instance of the AutodiscoverService class.

Parameters:

ParameterTypeDescription
domainjava.lang.StringThe domain that will be used to determine the URL of the service.
requestedServerVersionjava.lang.IntegerThe requested server version.

AutodiscoverService(URI url)

public AutodiscoverService(URI url)

Initializes a new instance of the AutodiscoverService class.

Parameters:

ParameterTypeDescription
urljava.net.URIThe URL of the service.

AutodiscoverService(URI url, Integer requestedServerVersion)

public AutodiscoverService(URI url, Integer requestedServerVersion)

Initializes a new instance of the AutodiscoverService class.

Parameters:

ParameterTypeDescription
urljava.net.URIThe URL of the service.
requestedServerVersionjava.lang.IntegerThe requested server version.

OnSerializeCustomSoapHeaders

public final Event<AutodiscoverServiceBase.CustomXmlSerializationDelegate> OnSerializeCustomSoapHeaders

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getAcceptGzipEncoding()

public final boolean getAcceptGzipEncoding()

Gets or sets a value indicating whether GZip compression encoding should be accepted.


This value will tell the server that the client is able to handle GZip compression encoding. The server will only send Gzip compressed content if it has been configured to do so.

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getClientRequestId()

public final String getClientRequestId()

Gets or sets the request id for the request.

Returns: java.lang.String

getConnectionGroupName()

public final String getConnectionGroupName()

Gets or sets the name of the connection group for the request.

Returns: java.lang.String

getCredentials()

public final System.Net.ICredentials getCredentials()

Gets or sets the credentials used to authenticate with the Exchange Web Services. Setting the Credentials property automatically sets the UseDefaultCredentials to false.

Returns: com.aspose.ms.System.Net.ICredentials

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.

Returns: java.lang.String

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.

Returns: boolean

getHttpHeaders()

public final System.Collections.Generic.IGenericDictionary<String,String> getHttpHeaders()

Gets a collection of HTTP headers that will be sent with each request to EWS.

Returns: com.aspose.ms.System.Collections.Generic.IGenericDictionary<java.lang.String,java.lang.String>

getHttpResponseHeaders()

public final System.Collections.Generic.IGenericDictionary<String,String> getHttpResponseHeaders()

Gets a collection of HTTP headers from the last response.

Returns: com.aspose.ms.System.Collections.Generic.IGenericDictionary<java.lang.String,java.lang.String>

getKeepAlive()

public final boolean getKeepAlive()

Gets or sets if the request to the internet resource should contain a Connection HTTP header with the value Keep-alive

Returns: boolean

getLogFileName()

public final String getLogFileName()

Gets or sets log file name

Returns: java.lang.String

getPreAuthenticate()

public final boolean getPreAuthenticate()

Gets or sets a value that indicates whether HTTP pre-authentication should be performed.

Returns: boolean

getRedirectionUrlValidationCallback()

public final AutodiscoverRedirectionUrlValidationCallback getRedirectionUrlValidationCallback()

Gets or sets the redirection URL validation callback.

Value: The redirection URL validation callback.

Returns: AutodiscoverRedirectionUrlValidationCallback

getRequestedServerVersion()

public final int getRequestedServerVersion()

Gets the requested server version.

Value: The requested server version.

Returns: int

getReturnClientRequestId()

public final boolean getReturnClientRequestId()

Gets or sets a flag to indicate whether the client requires the server side to return the request id.

Returns: boolean

getSendClientLatencies()

public final boolean getSendClientLatencies()

Gets or sets a value indicating whether client latency info is push to server.

Returns: boolean

getServerInfo()

public final ServerVersionInfo getServerInfo()

Gets information associated with the server that processed the last request. Will be null if no requests have been processed.

Returns: com.microsoft.schemas.exchange.services._2006.types.ServerVersionInfo

getTimeout()

public final int getTimeout()

Gets or sets the timeout used when sending HTTP requests and when receiving HTTP responses, in milliseconds. Defaults to 100000.

Returns: int

getUrl()

public final URI getUrl()

Gets or sets the URL this service is bound to.

Returns: java.net.URI

getUseDateInLogFileName()

public final boolean getUseDateInLogFileName()

Gets or sets value which indicates if date has to be used in log file name.

Returns: boolean

getUseDefaultCredentials()

public final boolean getUseDefaultCredentials()

Gets or sets a value indicating whether the credentials of the user currently logged into Windows should be used to authenticate with the Exchange Web Services. Setting UseDefaultCredentials to true automatically sets the Credentials property to null.

Returns: boolean

getUserAgent()

public final String getUserAgent()

Gets or sets the user agent.

Value: The user agent.

Returns: java.lang.String

getUserSettings(String userSmtpAddress, Integer[] userSettingNames)

public final GetUserSettingsResponse getUserSettings(String userSmtpAddress, Integer[] userSettingNames)

Retrieves the specified settings for single SMTP address.

Parameters:

ParameterTypeDescription
userSmtpAddressjava.lang.StringThe SMTP addresses of the user.
userSettingNamesjava.lang.Integer[]The user setting names.

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

Returns: GetUserSettingsResponse - A UserResponse object containing the requested settings for the specified user.

getUsersSettings(System.Collections.Generic.IGenericEnumerable userSmtpAddresses, Integer[] userSettingNames)

public final GetUserSettingsResponseCollection getUsersSettings(System.Collections.Generic.IGenericEnumerable<String> userSmtpAddresses, Integer[] userSettingNames)

Retrieves the specified settings for a set of users.

Parameters:

ParameterTypeDescription
userSmtpAddressescom.aspose.ms.System.Collections.Generic.IGenericEnumerable<java.lang.String>The SMTP addresses of the users.
userSettingNamesjava.lang.Integer[]The user setting names.

Returns: GetUserSettingsResponseCollection - A GetUserSettingsResponseCollection object containing the responses for each individual user.

getWebProxy()

public final System.Net.IWebProxy getWebProxy()

Gets or sets the web proxy that should be used when sending requests to EWS. Set this property to null to use the default web proxy.

Returns: com.aspose.ms.System.Net.IWebProxy

hashCode()

public native int hashCode()

Returns: int

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.

Returns: java.lang.Boolean

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setAcceptGzipEncoding(boolean value)

public final void setAcceptGzipEncoding(boolean value)

Gets or sets a value indicating whether GZip compression encoding should be accepted.


This value will tell the server that the client is able to handle GZip compression encoding. The server will only send Gzip compressed content if it has been configured to do so.

Parameters:

ParameterTypeDescription
valueboolean

setClientRequestId(String value)

public final void setClientRequestId(String value)

Gets or sets the request id for the request.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setConnectionGroupName(String value)

public final void setConnectionGroupName(String value)

Gets or sets the name of the connection group for the request.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setCredentials(System.Net.ICredentials value)

public final void setCredentials(System.Net.ICredentials value)

Gets or sets the credentials used to authenticate with the Exchange Web Services. Setting the Credentials property automatically sets the UseDefaultCredentials to false.

Parameters:

ParameterTypeDescription
valuecom.aspose.ms.System.Net.ICredentials

setDomain(String value)

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.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setEnableScpLookup(boolean value)

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.

Parameters:

ParameterTypeDescription
valueboolean

setKeepAlive(boolean value)

public final void setKeepAlive(boolean value)

Gets or sets if the request to the internet resource should contain a Connection HTTP header with the value Keep-alive

Parameters:

ParameterTypeDescription
valueboolean

setLogFileName(String value)

public final void setLogFileName(String value)

Gets or sets log file name

Parameters:

ParameterTypeDescription
valuejava.lang.String

setPreAuthenticate(boolean value)

public final void setPreAuthenticate(boolean value)

Gets or sets a value that indicates whether HTTP pre-authentication should be performed.

Parameters:

ParameterTypeDescription
valueboolean

setRedirectionUrlValidationCallback(AutodiscoverRedirectionUrlValidationCallback value)

public final void setRedirectionUrlValidationCallback(AutodiscoverRedirectionUrlValidationCallback value)

Gets or sets the redirection URL validation callback.

Value: The redirection URL validation callback.

Parameters:

ParameterTypeDescription
valueAutodiscoverRedirectionUrlValidationCallback

setReturnClientRequestId(boolean value)

public final void setReturnClientRequestId(boolean value)

Gets or sets a flag to indicate whether the client requires the server side to return the request id.

Parameters:

ParameterTypeDescription
valueboolean

setSendClientLatencies(boolean value)

public final void setSendClientLatencies(boolean value)

Gets or sets a value indicating whether client latency info is push to server.

Parameters:

ParameterTypeDescription
valueboolean

setTimeout(int value)

public final void setTimeout(int value)

Gets or sets the timeout used when sending HTTP requests and when receiving HTTP responses, in milliseconds. Defaults to 100000.

Parameters:

ParameterTypeDescription
valueint

setUrl(URI value)

public final void setUrl(URI value)

Gets or sets the URL this service is bound to.

Parameters:

ParameterTypeDescription
valuejava.net.URI

setUseDateInLogFileName(boolean value)

public final void setUseDateInLogFileName(boolean value)

Gets or sets value which indicates if date has to be used in log file name.

Parameters:

ParameterTypeDescription
valueboolean

setUseDefaultCredentials(boolean value)

public final void setUseDefaultCredentials(boolean value)

Gets or sets a value indicating whether the credentials of the user currently logged into Windows should be used to authenticate with the Exchange Web Services. Setting UseDefaultCredentials to true automatically sets the Credentials property to null.

Parameters:

ParameterTypeDescription
valueboolean

setUserAgent(String value)

public final void setUserAgent(String value)

Gets or sets the user agent.

Value: The user agent.

Parameters:

ParameterTypeDescription
valuejava.lang.String

setWebProxy(System.Net.IWebProxy value)

public final void setWebProxy(System.Net.IWebProxy value)

Gets or sets the web proxy that should be used when sending requests to EWS. Set this property to null to use the default web proxy.

Parameters:

ParameterTypeDescription
valuecom.aspose.ms.System.Net.IWebProxy

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int