net.fortuna.ical4j.connector.dav
C - the supported collection type
Created: [20/11/2008]public abstract class AbstractDavObjectStore<C extends ObjectCollection<?>> extends Object implements ObjectStore<C>
| Modifier and Type | Field and Description |
|---|---|
protected PathResolver |
pathResolver
Server implementation-specific path resolution.
|
| Constructor and Description |
|---|
AbstractDavObjectStore(URL url,
PathResolver pathResolver) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
connect()
Connect to a object store anonymously.
|
boolean |
connect(String username,
char[] password)
Connect to a object store using the specified credentials.
|
void |
disconnect() |
DavClient |
getClient() |
URL |
getHostURL() |
String |
getPath() |
protected String |
getUserName()
This method is needed to "propfind" the user's principals.
|
boolean |
isConnected() |
boolean |
isSupportCalendarProxy() |
ArrayList<SupportedFeature> |
supportedFeatures()
Returns a list of supported features, based on the DAV header in the response
of the connect call.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCollection, addCollection, getCollection, getCollections, removeCollectionprotected final PathResolver pathResolver
public AbstractDavObjectStore(URL url, PathResolver pathResolver)
url - the URL of a CalDAV server instancepathResolver - the path resolver for the CalDAV server typepublic final String getPath()
public final boolean connect()
throws ObjectStoreException
connect in interface ObjectStore<C extends ObjectCollection<?>>ObjectStoreException - where an unexpected error occurspublic final boolean connect(String username, char[] password) throws ObjectStoreException
connect in interface ObjectStore<C extends ObjectCollection<?>>username - connection usernamepassword - connection passwordFailedOperationExceptionIOExceptionObjectStoreException - where an unexpected error occurspublic final void disconnect()
disconnect in interface ObjectStore<C extends ObjectCollection<?>>public final boolean isConnected()
isConnected in interface ObjectStore<C extends ObjectCollection<?>>protected String getUserName()
public DavClient getClient()
public URL getHostURL()
public ArrayList<SupportedFeature> supportedFeatures()
public boolean isSupportCalendarProxy()
Copyright © 2008-2013 Micronode. All Rights Reserved.