public abstract class EWSClient extends ExchangeClientBase
Provides access to MS Exchange Server by using Exchange Web Services (EWS).
Modifier and Type | Field and Description |
---|---|
protected int |
auto_CalendarFolderEventFilter
protected property
|
protected int |
auto_ContactsFolderEventFilter
protected property
|
protected int |
auto_DeletedItemsFolderEventFilter
protected property
|
protected int |
auto_DraftsFolderEventFilter
protected property
|
protected int |
auto_InboxFolderEventFilter
protected property
|
protected int |
auto_JournalFolderEventFilter
protected property
|
protected int |
auto_NotesFolderEventFilter
protected property
|
protected int |
auto_NotificationsCheckInterval
protected property
|
protected int |
auto_NotificationTimeout
protected property
|
protected int |
auto_OutboxFolderEventFilter
protected property
|
protected int |
auto_RootFolderEventFilter
protected property
|
protected int |
auto_SentItemsFolderEventFilter
protected property
|
protected int |
auto_TasksFolderEventFilter
protected property
|
com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler<ServerNotificationEventArgs>> |
CalendarFolderServerNotifications
Occurs when arises specified event type for Calendar folder.
|
protected com.aspose.ms.System.EventHandler<ServerNotificationEventArgs> |
CalendarFolderServerNotificationsDelegate
Occurs when arises specified event type for Calendar folder.
|
com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler<ServerNotificationEventArgs>> |
ContactsFolderServerNotifications
Occurs when arises specified event type for Contacts folder.
|
protected com.aspose.ms.System.EventHandler<ServerNotificationEventArgs> |
ContactsFolderServerNotificationsDelegate
Occurs when arises specified event type for Contacts folder.
|
protected com.aspose.email.ExchangeCookieContainer |
cookieContainer
protected property
|
com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler<ServerNotificationEventArgs>> |
DeletedItemsFolderServerNotifications
Occurs when arises specified event type for DeletedItems folder.
|
protected com.aspose.ms.System.EventHandler<ServerNotificationEventArgs> |
DeletedItemsFolderServerNotificationsDelegate
Occurs when arises specified event type for DeletedItems folder.
|
com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler<ServerNotificationEventArgs>> |
DraftsFolderServerNotifications
Occurs when arises specified event type for Drafts folder.
|
protected com.aspose.ms.System.EventHandler<ServerNotificationEventArgs> |
DraftsFolderServerNotificationsDelegate
Occurs when arises specified event type for Drafts folder.
|
protected static com.microsoft.schemas.exchange.services._2006.types.ObjectFactory |
Factory
Constant
Factory |
protected static com.microsoft.schemas.exchange.services._2006.messages.ObjectFactory |
Factory2
Constant
Factory2 |
com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler<ServerNotificationEventArgs>> |
InboxFolderServerNotifications
Occurs when arises specified event type for Inbox folder.
|
protected com.aspose.ms.System.EventHandler<ServerNotificationEventArgs> |
InboxFolderServerNotificationsDelegate
Occurs when arises specified event type for Inbox folder.
|
com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler<ServerNotificationEventArgs>> |
JournalFolderServerNotifications
Occurs when arises specified event type for Journal folder.
|
protected com.aspose.ms.System.EventHandler<ServerNotificationEventArgs> |
JournalFolderServerNotificationsDelegate
Occurs when arises specified event type for Journal folder.
|
com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler<ServerNotificationEventArgs>> |
NotesFolderServerNotifications
Occurs when arises specified event type for Notes folder.
|
protected com.aspose.ms.System.EventHandler<ServerNotificationEventArgs> |
NotesFolderServerNotificationsDelegate
Occurs when arises specified event type for Notes folder.
|
com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler<ServerNotificationEventArgs>> |
OutboxFolderServerNotifications
Occurs when arises specified event type for Outbox folder.
|
protected com.aspose.ms.System.EventHandler<ServerNotificationEventArgs> |
OutboxFolderServerNotificationsDelegate
Occurs when arises specified event type for Outbox folder.
|
com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler<ServerNotificationEventArgs>> |
RootFolderServerNotifications
Occurs when arises specified event type for Root folder.
|
protected com.aspose.ms.System.EventHandler<ServerNotificationEventArgs> |
RootFolderServerNotificationsDelegate
Occurs when arises specified event type for Root folder.
|
protected URL |
saajUrl
protected property
|
com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler<ServerNotificationEventArgs>> |
SentItemsFolderServerNotifications
Occurs when arises specified event type for SentItems folder.
|
protected com.aspose.ms.System.EventHandler<ServerNotificationEventArgs> |
SentItemsFolderServerNotificationsDelegate
Occurs when arises specified event type for SentItems folder.
|
protected com.aspose.email.ExchangeServiceBinding |
serviceBinding |
com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler<ServerNotificationEventArgs>> |
TasksFolderServerNotifications
Occurs when arises specified event type for Tasks folder.
|
protected com.aspose.ms.System.EventHandler<ServerNotificationEventArgs> |
TasksFolderServerNotificationsDelegate
Occurs when arises specified event type for Tasks folder.
|
Modifier and Type | Method and Description |
---|---|
static void |
disableSAAJCertificateValidation()
Disable SAAJ certificate validation
|
void |
dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
protected static int |
folderClassToFolderType(String folderClass) |
protected static String |
folderTypeToFolderClass(int folderType) |
protected static String |
folderTypeToFolderClass(int folderType,
String customFolderClass) |
int |
getCalendarFolderEventFilter()
getCalendarFolderEventFilter.
|
int |
getContactsFolderEventFilter()
getContactsFolderEventFilter.
|
int |
getDeletedItemsFolderEventFilter()
getDeletedItemsFolderEventFilter.
|
int |
getDraftsFolderEventFilter()
getDraftsFolderEventFilter.
|
static IEWSClient |
getEWSClient(int serverVersion,
boolean formbasedAuthenticationRequired,
String formbasedAuthenticationLocation,
String mailboxUri,
com.aspose.ms.System.Net.ICredentials credentials,
com.aspose.ms.System.Net.WebProxy proxy)
Initializes a new instance of the
EWSClient based class |
static IEWSClient |
getEWSClient(int serverVersion,
String mailboxUri,
com.aspose.ms.System.Net.ICredentials credentials,
com.aspose.ms.System.Net.WebProxy proxy)
Initializes a new instance of the
EWSClient based class |
static IEWSClient |
getEWSClient(String mailboxUri,
com.aspose.ms.System.Net.ICredentials credentials)
Initializes a new instance of the
EWSClient based class |
static IEWSClient |
getEWSClient(String mailboxUri,
com.aspose.ms.System.Net.ICredentials credentials,
com.aspose.ms.System.Net.WebProxy proxy)
Initializes a new instance of the
EWSClient based class |
static IEWSClient |
getEWSClient(String mailboxUri,
com.aspose.ms.System.Net.ICredentials credentials,
com.aspose.ms.System.Net.WebProxy proxy,
int timeout)
Initializes a new instance of the
EWSClient based class |
static IEWSClient |
getEWSClient(String mailboxUri,
String username,
String password)
Initializes a new instance of the
EWSClient based class |
static IEWSClient |
getEWSClient(String mailboxUri,
String username,
String password,
String domain)
Initializes a new instance of the
EWSClient based class |
static IEWSClient |
getEWSClient(String mailboxUri,
String username,
String password,
String domain,
com.aspose.ms.System.Net.WebProxy proxy)
Initializes a new instance of the
EWSClient based class |
static IEWSClient |
getEWSClient(String mailboxUri,
String username,
String password,
com.aspose.ms.System.Net.WebProxy proxy)
Initializes a new instance of the
EWSClient based class |
static IEWSClient |
getEWSClient(URL mailboxUrl)
Initializes a new instance of the
EWSClient based class |
static IEWSClient |
getEWSClient(URL mailboxUrl,
int serverVersion)
Initializes a new instance of the
EWSClient based class |
int |
getInboxFolderEventFilter()
getInboxFolderEventFilter.
|
int |
getJournalFolderEventFilter()
getJournalFolderEventFilter.
|
int |
getNotesFolderEventFilter()
getNotesFolderEventFilter.
|
int |
getNotificationsCheckInterval()
getNotificationsCheckInterval.
|
int |
getNotificationTimeout()
getNotificationTimeout.
|
int |
getOutboxFolderEventFilter()
getOutboxFolderEventFilter.
|
int |
getRootFolderEventFilter()
getRootFolderEventFilter.
|
int |
getSentItemsFolderEventFilter()
getSentItemsFolderEventFilter.
|
int |
getTasksFolderEventFilter()
getTasksFolderEventFilter.
|
void |
setCalendarFolderEventFilter(int value)
setCalendarFolderEventFilter.
|
void |
setContactsFolderEventFilter(int value)
setContactsFolderEventFilter.
|
void |
setDeletedItemsFolderEventFilter(int value)
setDeletedItemsFolderEventFilter.
|
void |
setDraftsFolderEventFilter(int value)
setDraftsFolderEventFilter.
|
void |
setInboxFolderEventFilter(int value)
setInboxFolderEventFilter.
|
void |
setJournalFolderEventFilter(int value)
setJournalFolderEventFilter.
|
void |
setNotesFolderEventFilter(int value)
setNotesFolderEventFilter.
|
void |
setNotificationsCheckInterval(int value)
setNotificationsCheckInterval.
|
void |
setNotificationTimeout(int value)
setNotificationTimeout.
|
void |
setOutboxFolderEventFilter(int value)
setOutboxFolderEventFilter.
|
void |
setRootFolderEventFilter(int value)
setRootFolderEventFilter.
|
void |
setSentItemsFolderEventFilter(int value)
setSentItemsFolderEventFilter.
|
void |
setTasksFolderEventFilter(int value)
setTasksFolderEventFilter.
|
static void |
useSAAJAPI(boolean value)
Sets value indicating whether SAAJ is used.
|
dispose, getCredentials, getLogFileName, getMailboxUri, getProxy, getTimeout, getUseDateInLogFileName, resetLogSettings, setCredentials, setLogFileName, setMailboxUri, setProxy, setTimeout, setUseDateInLogFileName
protected static final com.microsoft.schemas.exchange.services._2006.types.ObjectFactory Factory
Factory
protected static final com.microsoft.schemas.exchange.services._2006.messages.ObjectFactory Factory2
Factory2
protected com.aspose.email.ExchangeCookieContainer cookieContainer
protected property
protected URL saajUrl
protected property
protected int auto_NotificationTimeout
protected property
protected int auto_NotificationsCheckInterval
protected property
protected com.aspose.ms.System.EventHandler<ServerNotificationEventArgs> RootFolderServerNotificationsDelegate
Occurs when arises specified event type for Root folder.
public final com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler<ServerNotificationEventArgs>> RootFolderServerNotifications
Occurs when arises specified event type for Root folder.
protected com.aspose.ms.System.EventHandler<ServerNotificationEventArgs> CalendarFolderServerNotificationsDelegate
Occurs when arises specified event type for Calendar folder.
public final com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler<ServerNotificationEventArgs>> CalendarFolderServerNotifications
Occurs when arises specified event type for Calendar folder.
protected com.aspose.ms.System.EventHandler<ServerNotificationEventArgs> ContactsFolderServerNotificationsDelegate
Occurs when arises specified event type for Contacts folder.
public final com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler<ServerNotificationEventArgs>> ContactsFolderServerNotifications
Occurs when arises specified event type for Contacts folder.
protected com.aspose.ms.System.EventHandler<ServerNotificationEventArgs> DeletedItemsFolderServerNotificationsDelegate
Occurs when arises specified event type for DeletedItems folder.
public final com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler<ServerNotificationEventArgs>> DeletedItemsFolderServerNotifications
Occurs when arises specified event type for DeletedItems folder.
protected com.aspose.ms.System.EventHandler<ServerNotificationEventArgs> DraftsFolderServerNotificationsDelegate
Occurs when arises specified event type for Drafts folder.
public final com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler<ServerNotificationEventArgs>> DraftsFolderServerNotifications
Occurs when arises specified event type for Drafts folder.
protected com.aspose.ms.System.EventHandler<ServerNotificationEventArgs> InboxFolderServerNotificationsDelegate
Occurs when arises specified event type for Inbox folder.
public final com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler<ServerNotificationEventArgs>> InboxFolderServerNotifications
Occurs when arises specified event type for Inbox folder.
protected com.aspose.ms.System.EventHandler<ServerNotificationEventArgs> JournalFolderServerNotificationsDelegate
Occurs when arises specified event type for Journal folder.
public final com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler<ServerNotificationEventArgs>> JournalFolderServerNotifications
Occurs when arises specified event type for Journal folder.
protected com.aspose.ms.System.EventHandler<ServerNotificationEventArgs> NotesFolderServerNotificationsDelegate
Occurs when arises specified event type for Notes folder.
public final com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler<ServerNotificationEventArgs>> NotesFolderServerNotifications
Occurs when arises specified event type for Notes folder.
protected com.aspose.ms.System.EventHandler<ServerNotificationEventArgs> OutboxFolderServerNotificationsDelegate
Occurs when arises specified event type for Outbox folder.
public final com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler<ServerNotificationEventArgs>> OutboxFolderServerNotifications
Occurs when arises specified event type for Outbox folder.
protected com.aspose.ms.System.EventHandler<ServerNotificationEventArgs> SentItemsFolderServerNotificationsDelegate
Occurs when arises specified event type for SentItems folder.
public final com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler<ServerNotificationEventArgs>> SentItemsFolderServerNotifications
Occurs when arises specified event type for SentItems folder.
protected com.aspose.ms.System.EventHandler<ServerNotificationEventArgs> TasksFolderServerNotificationsDelegate
Occurs when arises specified event type for Tasks folder.
public final com.aspose.ms.lang.Event<com.aspose.ms.System.EventHandler<ServerNotificationEventArgs>> TasksFolderServerNotifications
Occurs when arises specified event type for Tasks folder.
protected int auto_RootFolderEventFilter
protected property
protected int auto_CalendarFolderEventFilter
protected property
protected int auto_ContactsFolderEventFilter
protected property
protected int auto_DeletedItemsFolderEventFilter
protected property
protected int auto_DraftsFolderEventFilter
protected property
protected int auto_InboxFolderEventFilter
protected property
protected int auto_JournalFolderEventFilter
protected property
protected int auto_NotesFolderEventFilter
protected property
protected int auto_OutboxFolderEventFilter
protected property
protected int auto_SentItemsFolderEventFilter
protected property
protected int auto_TasksFolderEventFilter
protected property
protected com.aspose.email.ExchangeServiceBinding serviceBinding
public static void useSAAJAPI(boolean value)
Sets value indicating whether SAAJ is used.
value
- True if SAAJ API should be used.public static void disableSAAJCertificateValidation()
Disable SAAJ certificate validation
public static IEWSClient getEWSClient(URL mailboxUrl)
Initializes a new instance of the EWSClient
based class
mailboxUrl
- The URL of mailboxEWSClient
class.public static IEWSClient getEWSClient(URL mailboxUrl, int serverVersion)
Initializes a new instance of the EWSClient
based class
mailboxUrl
- The URL of mailboxserverVersion
- Exchange server versionsEWSClient
class.public static IEWSClient getEWSClient(String mailboxUri, com.aspose.ms.System.Net.ICredentials credentials)
Initializes a new instance of the EWSClient
based class
mailboxUri
- The URI of mailboxcredentials
- Contains the credentials for authentication.EWSClient
class.public static IEWSClient getEWSClient(String mailboxUri, String username, String password)
Initializes a new instance of the EWSClient
based class
mailboxUri
- The URI of mailboxusername
- The usernamepassword
- The passwordEWSClient
class.public static IEWSClient getEWSClient(String mailboxUri, String username, String password, com.aspose.ms.System.Net.WebProxy proxy)
Initializes a new instance of the EWSClient
based class
mailboxUri
- The URI of mailboxusername
- The usernamepassword
- The passwordproxy
- Contains HTTP proxy settingsEWSClient
class.public static IEWSClient getEWSClient(String mailboxUri, String username, String password, String domain)
Initializes a new instance of the EWSClient
based class
mailboxUri
- The URI of mailboxusername
- The usernamepassword
- The passworddomain
- The domain nameEWSClient
class.public static IEWSClient getEWSClient(String mailboxUri, String username, String password, String domain, com.aspose.ms.System.Net.WebProxy proxy)
Initializes a new instance of the EWSClient
based class
mailboxUri
- The URI of mailboxusername
- The usernamepassword
- The passworddomain
- The domain nameproxy
- Contains HTTP proxy settingsEWSClient
class.public static IEWSClient getEWSClient(int serverVersion, String mailboxUri, com.aspose.ms.System.Net.ICredentials credentials, com.aspose.ms.System.Net.WebProxy proxy)
Initializes a new instance of the EWSClient
based class
serverVersion
- Exchange server versionsmailboxUri
- The URI of mailboxcredentials
- Contains the credentials for authentication.proxy
- Contains HTTP proxy settingsEWSClient
class.public static IEWSClient getEWSClient(int serverVersion, boolean formbasedAuthenticationRequired, String formbasedAuthenticationLocation, String mailboxUri, com.aspose.ms.System.Net.ICredentials credentials, com.aspose.ms.System.Net.WebProxy proxy)
Initializes a new instance of the EWSClient
based class
serverVersion
- Exchange server versionsformbasedAuthenticationRequired
- Set true if form-based authentication is required, otherwise set false.formbasedAuthenticationLocation
- url for form-based authenticationmailboxUri
- The URI of mailboxcredentials
- Contains the credentials for authentication.proxy
- Contains HTTP proxy settingsEWSClient
class.public static IEWSClient getEWSClient(String mailboxUri, com.aspose.ms.System.Net.ICredentials credentials, com.aspose.ms.System.Net.WebProxy proxy)
Initializes a new instance of the EWSClient
based class
mailboxUri
- The URI of mailboxcredentials
- Contains the credentials for authentication.proxy
- Contains HTTP proxy settingsEWSClient
class.public static IEWSClient getEWSClient(String mailboxUri, com.aspose.ms.System.Net.ICredentials credentials, com.aspose.ms.System.Net.WebProxy proxy, int timeout)
Initializes a new instance of the EWSClient
based class
mailboxUri
- The URI of mailboxcredentials
- Contains the credentials for authentication.proxy
- Contains HTTP proxy settingstimeout
- Sets the number of milliseconds to wait before the operation times out.EWSClient
class.public int getNotificationTimeout()
getNotificationTimeout.
public void setNotificationTimeout(int value)
setNotificationTimeout.
value
- a int.public int getNotificationsCheckInterval()
getNotificationsCheckInterval.
public void setNotificationsCheckInterval(int value)
setNotificationsCheckInterval.
value
- a int.public int getRootFolderEventFilter()
getRootFolderEventFilter.
public void setRootFolderEventFilter(int value)
setRootFolderEventFilter.
value
- a int.public int getCalendarFolderEventFilter()
getCalendarFolderEventFilter.
public void setCalendarFolderEventFilter(int value)
setCalendarFolderEventFilter.
value
- a int.public int getContactsFolderEventFilter()
getContactsFolderEventFilter.
public void setContactsFolderEventFilter(int value)
setContactsFolderEventFilter.
value
- a int.public int getDeletedItemsFolderEventFilter()
getDeletedItemsFolderEventFilter.
public void setDeletedItemsFolderEventFilter(int value)
setDeletedItemsFolderEventFilter.
value
- a int.public int getDraftsFolderEventFilter()
getDraftsFolderEventFilter.
public void setDraftsFolderEventFilter(int value)
setDraftsFolderEventFilter.
value
- a int.public int getInboxFolderEventFilter()
getInboxFolderEventFilter.
public void setInboxFolderEventFilter(int value)
setInboxFolderEventFilter.
value
- a int.public int getJournalFolderEventFilter()
getJournalFolderEventFilter.
public void setJournalFolderEventFilter(int value)
setJournalFolderEventFilter.
value
- a int.public int getNotesFolderEventFilter()
getNotesFolderEventFilter.
public void setNotesFolderEventFilter(int value)
setNotesFolderEventFilter.
value
- a int.public int getOutboxFolderEventFilter()
getOutboxFolderEventFilter.
public void setOutboxFolderEventFilter(int value)
setOutboxFolderEventFilter.
value
- a int.public int getSentItemsFolderEventFilter()
getSentItemsFolderEventFilter.
public void setSentItemsFolderEventFilter(int value)
setSentItemsFolderEventFilter.
value
- a int.public int getTasksFolderEventFilter()
getTasksFolderEventFilter.
public void setTasksFolderEventFilter(int value)
setTasksFolderEventFilter.
value
- a int.protected static int folderClassToFolderType(String folderClass)
protected static String folderTypeToFolderClass(int folderType)
protected static String folderTypeToFolderClass(int folderType, String customFolderClass)
public void dispose()
ExchangeClientBase
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
dispose
in interface com.aspose.ms.System.IDisposable
dispose
in class ExchangeClientBase