org.eclipse.webdav.client
Class DAVClient

java.lang.Object
  extended by org.eclipse.webdav.client.DAVClient
All Implemented Interfaces:
IServer
Direct Known Subclasses:
LocalDAVClient, RemoteDAVClient

public abstract class DAVClient
extends Object
implements IServer

Dav Clients implement the IServer interface and represent a client's connection to a server.

Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.


Field Summary
protected  WebDAVFactory davFactory
           
 
Constructor Summary
DAVClient(DAVClient davClient)
          Creates a new DAV client from a clone of the given DAV client.
DAVClient(WebDAVFactory davFactory)
          Creates a new DAV client.
 
Method Summary
protected abstract  Object clone()
           
 void close()
          Shut down the client for future use, and release any system resources associated with the instance.
 WebDAVFactory getDAVFactory()
           
protected  IContext newContext(IContext userContext, ILocator locator)
          Returns a new context that is based on the given context.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.webdav.IServer
baselineControl, bind, checkin, checkout, copy, delete, get, head, label, lock, merge, mkactivity, mkcol, mkworkspace, move, options, post, propfind, proppatch, put, report, trace, uncheckout, unlock, update, versionControl
 

Field Detail

davFactory

protected WebDAVFactory davFactory
Constructor Detail

DAVClient

public DAVClient(DAVClient davClient)
Creates a new DAV client from a clone of the given DAV client.

Parameters:
davClient - the DAV client to clone

DAVClient

public DAVClient(WebDAVFactory davFactory)
Creates a new DAV client.

Parameters:
davFactory -
Method Detail

clone

protected abstract Object clone()
Overrides:
clone in class Object
See Also:
Object.clone()

getDAVFactory

public WebDAVFactory getDAVFactory()

newContext

protected IContext newContext(IContext userContext,
                              ILocator locator)
                       throws MalformedURLException
Returns a new context that is based on the given context.

Parameters:
userContext -
locator -
Returns:
a new context that is based on the given context
Throws:
MalformedURLException

close

public void close()
Shut down the client for future use, and release any system resources associated with the instance. Callers should not expect the client to succeed with further API calls once the client has been closed.



Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.