public abstract class ExchangeSession.Event extends ExchangeSession.Item
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
protected static String |
APPLICATION_ICS |
protected String |
contentClass |
protected String |
subject |
protected static String |
TEXT_CALENDAR |
protected VCalendar |
vCalendar |
displayName, etag, folderPath, itemName, noneMatch, permanentUrl| Modifier | Constructor and Description |
|---|---|
protected |
Event() |
|
Event(String folderPath,
String itemName,
String contentClass,
String itemBody,
String etag,
String noneMatch) |
| Modifier and Type | Method and Description |
|---|---|
protected HttpNotFoundException |
buildHttpNotFoundException(Exception e) |
byte[] |
createMimeContent()
Build Mime body for event or event message.
|
abstract ExchangeSession.ItemResult |
createOrUpdate()
Create or update item
|
protected void |
dumpICS(String icsBody,
boolean fromServer,
boolean after) |
protected void |
fixICS(byte[] icsContent,
boolean fromServer) |
String |
getBody()
Retrieve item body from Exchange
|
protected javax.mail.internet.MimePart |
getCalendarMimePart(javax.mail.internet.MimeMultipart multiPart) |
String |
getContentType()
Return item content type
|
abstract byte[] |
getEventContent()
Retrieve item body from Exchange
|
protected byte[] |
getICS(InputStream mimeInputStream)
Load ICS content from MIME message input stream
|
protected boolean |
isCalendarContentType(String contentType) |
getEtag, getHref, getName, setHref, setItemNameclear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringprotected String contentClass
protected String subject
protected VCalendar vCalendar
protected static final String TEXT_CALENDAR
protected static final String APPLICATION_ICS
public Event(String folderPath, String itemName, String contentClass, String itemBody, String etag, String noneMatch) throws IOException
IOExceptionprotected Event()
public String getContentType()
ExchangeSession.ItemgetContentType in class ExchangeSession.Itempublic String getBody() throws IOException
ExchangeSession.ItemgetBody in class ExchangeSession.ItemIOException - on errorprotected HttpNotFoundException buildHttpNotFoundException(Exception e)
public abstract byte[] getEventContent()
throws IOException
IOException - on errorprotected boolean isCalendarContentType(String contentType)
protected javax.mail.internet.MimePart getCalendarMimePart(javax.mail.internet.MimeMultipart multiPart)
throws IOException,
javax.mail.MessagingException
IOExceptionjavax.mail.MessagingExceptionprotected byte[] getICS(InputStream mimeInputStream) throws IOException, javax.mail.MessagingException
mimeInputStream - mime message input streamIOException - on errorjavax.mail.MessagingException - on errorprotected void fixICS(byte[] icsContent,
boolean fromServer)
throws IOException
IOExceptionprotected void dumpICS(String icsBody, boolean fromServer, boolean after)
public byte[] createMimeContent()
throws IOException
IOException - on errorpublic abstract ExchangeSession.ItemResult createOrUpdate() throws IOException
IOException - on errorCopyright © 2001–2025 MickaĆ«l Guessant. All rights reserved.