protected static class CaldavConnection.CaldavRequest extends Object
Modifier and Type | Field and Description |
---|---|
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 |
Modifier | Constructor and Description |
---|---|
protected |
CaldavRequest(String command,
String path,
Map<String,String> headers,
String body) |
Modifier and Type | Method and Description |
---|---|
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(XMLStreamReader reader) |
void |
handleProp(XMLStreamReader reader) |
boolean |
hasProperty(String propertyName) |
protected boolean |
isBrokenHrefEncoding() |
protected boolean |
isBrokenLightning() |
boolean |
isDelete() |
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() |
protected final String command
protected final String path
protected final String[] pathElements
protected int depth
protected final String body
protected boolean isMultiGet
protected String timeRangeStart
protected String timeRangeEnd
protected boolean vTodoOnly
protected boolean vEventOnly
protected CaldavRequest(String command, String path, Map<String,String> headers, String body) throws IOException
IOException
public boolean isOptions()
public boolean isPropFind()
public boolean isPropPatch()
public boolean isReport()
public boolean isGet()
public boolean isHead()
public boolean isPut()
public boolean isPost()
public boolean isDelete()
public boolean isMkCalendar()
public boolean isMove()
public boolean isFolder()
public boolean isRoot()
public boolean isPathLength(int length)
public int getPathLength()
public String getPath()
public boolean isPath(int index, String value)
index
- path element indexvalue
- path valueprotected String getPathElement(int index)
public String getLastPath()
protected boolean isBrokenHrefEncoding()
protected boolean isBrokenLightning()
protected boolean isLightning()
protected boolean isIcal5()
protected boolean isUserAgent(String key)
public boolean isFreeBusy()
protected void buildDepth()
public int getDepth()
public String getBody()
protected void parseXmlBody() throws IOException
IOException
public void handleCompFilter(XMLStreamReader reader) throws XMLStreamException
XMLStreamException
public void handleProp(XMLStreamReader reader) throws XMLStreamException
XMLStreamException
public boolean hasProperty(String propertyName)
public boolean isMultiGet()
public String getFolderPath()
public String getParentFolderPath()
public String getFolderPath(String subFolder)
subFolder
- sub folder pathCopyright © 2001–2024 MickaĆ«l Guessant. All rights reserved.