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, setItemName
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
equals, hashCode, toString
protected 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
IOException
protected Event()
public String getContentType()
ExchangeSession.Item
getContentType
in class ExchangeSession.Item
public String getBody() throws IOException
ExchangeSession.Item
getBody
in class ExchangeSession.Item
IOException
- 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
IOException
javax.mail.MessagingException
protected 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
IOException
protected 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–2024 MickaĆ«l Guessant. All rights reserved.