davmail.caldav
Class CaldavConnection.CaldavRequest

java.lang.Object
  extended by davmail.caldav.CaldavConnection.CaldavRequest
Enclosing class:
CaldavConnection

protected static class CaldavConnection.CaldavRequest
extends Object


Field Summary
protected  String body
           
protected  String command
           
protected  int depth
           
protected  Map<String,String> headers
           
protected  HashSet<String> hrefs
           
protected  boolean isMultiGet
           
protected  String path
           
protected  String[] pathElements
           
protected  HashMap<String,String> properties
           
protected  String timeRangeEnd
           
protected  String timeRangeStart
           
protected  boolean vEventOnly
           
protected  boolean vTodoOnly
           
 
Constructor Summary
protected CaldavConnection.CaldavRequest(String command, String path, Map<String,String> headers, String body)
           
 
Method Summary
protected  void buildDepth()
           
 String getBody()
           
 int getDepth()
           
 String getFolderPath()
          Get request folder path.
protected  String getFolderPath(int endIndex, String subFolder)
           
 String getFolderPath(String subFolder)
          Get request folder path with subFolder.
 String getHeader(String headerName)
           
 Set<String> getHrefs()
           
 String getLastPath()
           
 String getParentFolderPath()
           
 String getPath()
           
 String getPath(String subFolder)
           
protected  String getPathElement(int index)
           
 int getPathLength()
           
 String getProperty(String propertyName)
           
 void handleCompFilter(javax.xml.stream.XMLStreamReader reader)
           
 void handleProp(javax.xml.stream.XMLStreamReader reader)
           
 boolean hasProperty(String propertyName)
           
protected  boolean isBrokenHrefEncoding()
           
protected  boolean isBrokenLightning()
           
 boolean isDelete()
           
protected  boolean isEndTag(javax.xml.stream.XMLStreamReader reader, String tagLocalName)
           
 boolean isFolder()
          Check if this request is a folder request.
 boolean isFreeBusy()
           
 boolean isGet()
           
 boolean isHead()
           
protected  boolean isIcal5()
           
protected  boolean isLightning()
           
 boolean isMkCalendar()
           
 boolean isMove()
           
 boolean isMultiGet()
           
 boolean isOptions()
           
 boolean isPath(int index, String value)
          Check if path element at index is value
 boolean isPathLength(int length)
           
 boolean isPost()
           
 boolean isPropFind()
           
 boolean isPropPatch()
           
 boolean isPut()
           
 boolean isReport()
           
 boolean isRoot()
           
protected  boolean isUserAgent(String key)
           
protected  void parseXmlBody()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

command

protected final String command

path

protected final String path

pathElements

protected final String[] pathElements

headers

protected final Map<String,String> headers

depth

protected int depth

body

protected final String body

properties

protected final HashMap<String,String> properties

hrefs

protected HashSet<String> hrefs

isMultiGet

protected boolean isMultiGet

timeRangeStart

protected String timeRangeStart

timeRangeEnd

protected String timeRangeEnd

vTodoOnly

protected boolean vTodoOnly

vEventOnly

protected boolean vEventOnly
Constructor Detail

CaldavConnection.CaldavRequest

protected CaldavConnection.CaldavRequest(String command,
                                         String path,
                                         Map<String,String> headers,
                                         String body)
                                  throws IOException
Throws:
IOException
Method Detail

isOptions

public boolean isOptions()

isPropFind

public boolean isPropFind()

isPropPatch

public boolean isPropPatch()

isReport

public boolean isReport()

isGet

public boolean isGet()

isHead

public boolean isHead()

isPut

public boolean isPut()

isPost

public boolean isPost()

isDelete

public boolean isDelete()

isMkCalendar

public boolean isMkCalendar()

isMove

public boolean isMove()

isFolder

public boolean isFolder()
Check if this request is a folder request.

Returns:
true if this is a folder (not event) request

isRoot

public boolean isRoot()

isPathLength

public boolean isPathLength(int length)

getPathLength

public int getPathLength()

getPath

public String getPath()

getPath

public String getPath(String subFolder)

isPath

public boolean isPath(int index,
                      String value)
Check if path element at index is value

Parameters:
index - path element index
value - path value
Returns:
true if path element at index is value

getPathElement

protected String getPathElement(int index)

getLastPath

public String getLastPath()

isBrokenHrefEncoding

protected boolean isBrokenHrefEncoding()

isBrokenLightning

protected boolean isBrokenLightning()

isLightning

protected boolean isLightning()

isIcal5

protected boolean isIcal5()

isUserAgent

protected boolean isUserAgent(String key)

isFreeBusy

public boolean isFreeBusy()

buildDepth

protected void buildDepth()

getDepth

public int getDepth()

getBody

public String getBody()

getHeader

public String getHeader(String headerName)

parseXmlBody

protected void parseXmlBody()
                     throws IOException
Throws:
IOException

isEndTag

protected boolean isEndTag(javax.xml.stream.XMLStreamReader reader,
                           String tagLocalName)

handleCompFilter

public void handleCompFilter(javax.xml.stream.XMLStreamReader reader)
                      throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

handleProp

public void handleProp(javax.xml.stream.XMLStreamReader reader)
                throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

hasProperty

public boolean hasProperty(String propertyName)

getProperty

public String getProperty(String propertyName)

isMultiGet

public boolean isMultiGet()

getHrefs

public Set<String> getHrefs()

toString

public String toString()
Overrides:
toString in class Object

getFolderPath

public String getFolderPath()
Get request folder path.

Returns:
exchange folder path

getParentFolderPath

public String getParentFolderPath()

getFolderPath

public String getFolderPath(String subFolder)
Get request folder path with subFolder.

Parameters:
subFolder - sub folder path
Returns:
folder path

getFolderPath

protected String getFolderPath(int endIndex,
                               String subFolder)


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