davmail.exchange.dav
Class DavExchangeSession.Event

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,String>
          extended by davmail.exchange.ExchangeSession.Item
              extended by davmail.exchange.ExchangeSession.Event
                  extended by davmail.exchange.dav.DavExchangeSession.Event
All Implemented Interfaces:
Serializable, Cloneable, Map<String,String>
Enclosing class:
DavExchangeSession

public class DavExchangeSession.Event
extends ExchangeSession.Event

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Field Summary
protected  String instancetype
           
 
Fields inherited from class davmail.exchange.ExchangeSession.Event
APPLICATION_ICS, contentClass, subject, TEXT_CALENDAR, vCalendar
 
Fields inherited from class davmail.exchange.ExchangeSession.Item
displayName, etag, folderPath, itemName, noneMatch, permanentUrl
 
Constructor Summary
DavExchangeSession.Event(org.apache.jackrabbit.webdav.MultiStatusResponse multiStatusResponse)
          Build Event instance from response info.
DavExchangeSession.Event(String folderPath, String itemName, String contentClass, String itemBody, String etag, String noneMatch)
           
 
Method Summary
 ExchangeSession.ItemResult createOrUpdate()
          Create or update item
protected  void deleteBroken()
           
 byte[] getEventContent()
          Load ICS content from Exchange server.
protected  byte[] getICSFromInternetContentProperty()
           
protected  String getPermanentUrl()
           
protected  org.apache.commons.httpclient.methods.PutMethod internalCreateOrUpdate(String encodedHref, byte[] mimeContent)
           
 
Methods inherited from class davmail.exchange.ExchangeSession.Event
buildHttpException, createMimeContent, dumpICS, fixICS, getBody, getCalendarMimePart, getContentType, getICS, isCalendarContentType
 
Methods inherited from class davmail.exchange.ExchangeSession.Item
getEtag, getHref, getName, setHref
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

instancetype

protected String instancetype
Constructor Detail

DavExchangeSession.Event

public DavExchangeSession.Event(org.apache.jackrabbit.webdav.MultiStatusResponse multiStatusResponse)
                         throws org.apache.commons.httpclient.URIException
Build Event instance from response info.

Parameters:
multiStatusResponse - response
Throws:
org.apache.commons.httpclient.URIException - on error

DavExchangeSession.Event

public DavExchangeSession.Event(String folderPath,
                                String itemName,
                                String contentClass,
                                String itemBody,
                                String etag,
                                String noneMatch)
                         throws IOException
Throws:
IOException
Method Detail

getPermanentUrl

protected String getPermanentUrl()

getICSFromInternetContentProperty

protected byte[] getICSFromInternetContentProperty()
                                            throws IOException,
                                                   org.apache.jackrabbit.webdav.DavException,
                                                   javax.mail.MessagingException
Throws:
IOException
org.apache.jackrabbit.webdav.DavException
javax.mail.MessagingException

getEventContent

public byte[] getEventContent()
                       throws IOException
Load ICS content from Exchange server. User Translate: f header to get MIME event content and get ICS attachment from it

Specified by:
getEventContent in class ExchangeSession.Event
Returns:
ICS (iCalendar) event
Throws:
org.apache.commons.httpclient.HttpException - on error
IOException

deleteBroken

protected void deleteBroken()

internalCreateOrUpdate

protected org.apache.commons.httpclient.methods.PutMethod internalCreateOrUpdate(String encodedHref,
                                                                                 byte[] mimeContent)
                                                                          throws IOException
Throws:
IOException

createOrUpdate

public ExchangeSession.ItemResult createOrUpdate()
                                          throws IOException
Description copied from class: ExchangeSession.Event
Create or update item

Specified by:
createOrUpdate in class ExchangeSession.Event
Returns:
action result
Throws:
IOException - on error


Copyright © 2001-2013 MickaĆ«l Guessant. All Rights Reserved.