Package davmail.exchange.dav
Class DavExchangeSession.Event
java.lang.Object
java.util.AbstractMap<String,String>
java.util.HashMap<String,String>
davmail.exchange.ExchangeSession.Item
davmail.exchange.ExchangeSession.Event
davmail.exchange.dav.DavExchangeSession.Event
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,String>
- Enclosing class:
DavExchangeSession
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsFields inherited from class davmail.exchange.ExchangeSession.Event
APPLICATION_ICS, contentClass, startTimeZone, subject, TEXT_CALENDAR, vCalendarFields inherited from class davmail.exchange.ExchangeSession.Item
displayName, etag, folderPath, itemName, noneMatch, permanentUrl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate or update itemprotected voidbyte[]Load ICS content from Exchange server.protected byte[]protected Stringprotected org.apache.http.client.methods.CloseableHttpResponseinternalCreateOrUpdate(String encodedHref, byte[] mimeContent) Methods inherited from class davmail.exchange.ExchangeSession.Event
buildHttpNotFoundException, createMimeContent, dumpICS, fixICS, getBody, getCalendarMimePart, getContentType, getICS, isCalendarContentTypeMethods inherited from class davmail.exchange.ExchangeSession.Item
getEtag, getHref, getName, setHref, setItemNameMethods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, newHashMap, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Field Details
-
instancetype
-
-
Constructor Details
-
Event
public Event(org.apache.jackrabbit.webdav.MultiStatusResponse multiStatusResponse) throws IOException Build Event instance from response info.- Parameters:
multiStatusResponse- response- Throws:
IOException- on error
-
Event
public Event(String folderPath, String itemName, String contentClass, String itemBody, String etag, String noneMatch) throws IOException - Throws:
IOException
-
-
Method Details
-
getPermanentUrl
-
getICSFromInternetContentProperty
protected byte[] getICSFromInternetContentProperty() throws IOException, org.apache.jackrabbit.webdav.DavException, javax.mail.MessagingException- Throws:
IOExceptionorg.apache.jackrabbit.webdav.DavExceptionjavax.mail.MessagingException
-
getEventContent
Load ICS content from Exchange server. User Translate: f header to get MIME event content and get ICS attachment from it- Specified by:
getEventContentin classExchangeSession.Event- Returns:
- ICS (iCalendar) event
- Throws:
IOException- on error
-
deleteBroken
protected void deleteBroken() -
internalCreateOrUpdate
protected org.apache.http.client.methods.CloseableHttpResponse internalCreateOrUpdate(String encodedHref, byte[] mimeContent) throws IOException - Throws:
IOException
-
createOrUpdate
Description copied from class:ExchangeSession.EventCreate or update item- Specified by:
createOrUpdatein classExchangeSession.Event- Returns:
- action result
- Throws:
IOException- on error
-