com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class AutodiscoverServiceBase

  • Direct Known Subclasses:
    AutodiscoverService


    public abstract class AutodiscoverServiceBase
    extends Object

    Represents an abstract binding to an Autodiscover Service.

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      com.aspose.ms.lang.Event<com.aspose.email.AutodiscoverServiceBase.CustomXmlSerializationDelegate> OnSerializeCustomSoapHeaders 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static boolean checkCertificate(Object sender, com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Certificate certificate, com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Chain chain, int sslPolicyErrors) 
      boolean getAcceptGzipEncoding()
      Gets or sets a value indicating whether GZip compression encoding should be accepted.
      String getClientRequestId()
      Gets or sets the request id for the request.
      String getConnectionGroupName()
      Gets or sets the name of the connection group for the request.
      com.aspose.ms.System.Net.CookieContainer getCookieContainer()
      Gets or sets the cookie container.
      com.aspose.ms.System.Net.ICredentials getCredentials()
      Gets or sets the credentials used to authenticate with the Exchange Web Services.
      com.aspose.ms.System.Collections.Generic.IGenericDictionary<String,String> getHttpHeaders()
      Gets a collection of HTTP headers that will be sent with each request to EWS.
      com.aspose.ms.System.Collections.Generic.IGenericDictionary<String,String> getHttpResponseHeaders()
      Gets a collection of HTTP headers from the last response.
      boolean getKeepAlive()
      Gets or sets if the request to the internet resource should contain a Connection HTTP header with the value Keep-alive
      String getLogFileName()
      Gets or sets log file name
      boolean getPreAuthenticate()
      Gets or sets a value that indicates whether HTTP pre-authentication should be performed.
      int getRequestedServerVersion()
      Gets the requested server version.
      boolean getReturnClientRequestId()
      Gets or sets a flag to indicate whether the client requires the server side to return the request id.
      boolean getSendClientLatencies()
      Gets or sets a value indicating whether client latency info is push to server.
      com.microsoft.schemas.exchange.services._2006.types.ServerVersionInfo getServerInfo()
      Gets information associated with the server that processed the last request.
      int getTimeout()
      Gets or sets the timeout used when sending HTTP requests and when receiving HTTP responses, in milliseconds.
      boolean getUseDateInLogFileName()
      Gets or sets value which indicates if date has to be used in log file name.
      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.
      String getUserAgent()
      Gets or sets the user agent.
      com.aspose.ms.System.Net.IWebProxy getWebProxy()
      Gets or sets the web proxy that should be used when sending requests to EWS.
      void setAcceptGzipEncoding(boolean value)
      Gets or sets a value indicating whether GZip compression encoding should be accepted.
      void setClientRequestId(String value)
      Gets or sets the request id for the request.
      void setConnectionGroupName(String value)
      Gets or sets the name of the connection group for the request.
      void setCookieContainer(com.aspose.ms.System.Net.CookieContainer value)
      Gets or sets the cookie container.
      void setCredentials(com.aspose.ms.System.Net.ICredentials value)
      Gets or sets the credentials used to authenticate with the Exchange Web Services.
      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
      void setLogFileName(String value)
      Gets or sets log file name
      void setPreAuthenticate(boolean value)
      Gets or sets a value that indicates whether HTTP pre-authentication should be performed.
      void setReturnClientRequestId(boolean value)
      Gets or sets a flag to indicate whether the client requires the server side to return the request id.
      void setSendClientLatencies(boolean value)
      Gets or sets a value indicating whether client latency info is push to server.
      void setTimeout(int value)
      Gets or sets the timeout used when sending HTTP requests and when receiving HTTP responses, in milliseconds.
      void setUseDateInLogFileName(boolean value)
      Gets or sets value which indicates if date has to be used in log file name.
      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.
      void setUserAgent(String value)
      Gets or sets the user agent.
      void setWebProxy(com.aspose.ms.System.Net.IWebProxy value)
      Gets or sets the web proxy that should be used when sending requests to EWS.
    • Field Detail

      • OnSerializeCustomSoapHeaders

        public final com.aspose.ms.lang.Event<com.aspose.email.AutodiscoverServiceBase.CustomXmlSerializationDelegate> OnSerializeCustomSoapHeaders
    • Constructor Detail

      • AutodiscoverServiceBase

        protected AutodiscoverServiceBase()

        Initializes a new instance of the AutodiscoverServiceBase class.

      • AutodiscoverServiceBase

        protected AutodiscoverServiceBase(Integer requestedServerVersion)

        Initializes a new instance of the AutodiscoverServiceBase class.

        Parameters:
        requestedServerVersion - The requested server version.
    • Method Detail

      • checkCertificate

        public static boolean checkCertificate(Object sender,
                               com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Certificate certificate,
                               com.aspose.ms.System.Security.Cryptography.X509Certificates.X509Chain chain,
                               int sslPolicyErrors)
      • getLogFileName

        public final String getLogFileName()

        Gets or sets log file name

      • setLogFileName

        public final void setLogFileName(String value)

        Gets or sets log file name

      • getUseDateInLogFileName

        public final boolean getUseDateInLogFileName()

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

      • setUseDateInLogFileName

        public final void setUseDateInLogFileName(boolean value)

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

      • getCookieContainer

        public final com.aspose.ms.System.Net.CookieContainer getCookieContainer()

        Gets or sets the cookie container.

        Value: The cookie container.
      • setCookieContainer

        public final void setCookieContainer(com.aspose.ms.System.Net.CookieContainer value)

        Gets or sets the cookie container.

        Value: The cookie container.
      • getSendClientLatencies

        public final boolean getSendClientLatencies()

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

      • setSendClientLatencies

        public final void setSendClientLatencies(boolean value)

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

      • getCredentials

        public final com.aspose.ms.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.

      • setCredentials

        public final void setCredentials(com.aspose.ms.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.

      • 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.

      • setUseDefaultCredentials

        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.

      • 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.

      • setTimeout

        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.

      • getPreAuthenticate

        public final boolean getPreAuthenticate()

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

      • setPreAuthenticate

        public final void setPreAuthenticate(boolean value)

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

      • 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.

      • setAcceptGzipEncoding

        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.

      • getRequestedServerVersion

        public final int getRequestedServerVersion()

        Gets the requested server version.

        Value: The requested server version.
      • getUserAgent

        public final String getUserAgent()

        Gets or sets the user agent.

        Value: The user agent.
      • setUserAgent

        public final void setUserAgent(String value)

        Gets or sets the user agent.

        Value: The user agent.
      • getServerInfo

        public final com.microsoft.schemas.exchange.services._2006.types.ServerVersionInfo getServerInfo()

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

      • getWebProxy

        public final com.aspose.ms.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.

      • setWebProxy

        public final void setWebProxy(com.aspose.ms.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.

      • 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

      • setKeepAlive

        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

      • getConnectionGroupName

        public final String getConnectionGroupName()

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

      • setConnectionGroupName

        public final void setConnectionGroupName(String value)

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

      • getClientRequestId

        public final String getClientRequestId()

        Gets or sets the request id for the request.

      • setClientRequestId

        public final void setClientRequestId(String value)

        Gets or sets the request id for the request.

      • getReturnClientRequestId

        public final boolean getReturnClientRequestId()

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

      • setReturnClientRequestId

        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.

      • getHttpHeaders

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

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

      • getHttpResponseHeaders

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

        Gets a collection of HTTP headers from the last response.