org.apache.wvcm.store.webdav
Class WebdavAccessor

java.lang.Object
  extended by org.apache.wvcm.store.webdav.WebdavAccessor
All Implemented Interfaces:
Accessor
Direct Known Subclasses:
ResourceWebdavAccessor

public class WebdavAccessor
extends java.lang.Object
implements Accessor

WebDAV-based implementation of Accessor.

Version:
$Revision: 1.1.1.1.2.13 $

Nested Class Summary
protected static class WebdavAccessor.HttpClientWrapper
          Wrapper for HttpClient
 
Field Summary
protected  ProviderImpl providerImpl
           
 
Constructor Summary
WebdavAccessor()
          Dummy constructor
WebdavAccessor(Provider provider)
          Constructor.
 
Method Summary
protected  WebdavAccessor.HttpClientWrapper client()
          Get the HttpClient of this accessor.
protected  java.lang.String defaultContextPath()
          Get context path
protected  WebdavAccessor.HttpClientWrapper getHttpClient(Provider provider, java.lang.String scheme, java.lang.String hostname, int port)
          Deprecated. use getHttpClientWrapper()
protected  WebdavAccessor.HttpClientWrapper getHttpClientWrapper(Provider provider, java.lang.String scheme, java.lang.String hostname, int port)
           
protected  void initialize(java.lang.String scheme, java.lang.String hostname, int port)
           
 java.util.List serverWorkspaceFolderList(PropertyNameList wantedPropertyList)
          Return a list of Folder objects that identify folders on the server that contain workspaces for the Provider of this accessor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

providerImpl

protected ProviderImpl providerImpl
Constructor Detail

WebdavAccessor

public WebdavAccessor()
Dummy constructor


WebdavAccessor

public WebdavAccessor(Provider provider)
Constructor.

Method Detail

serverWorkspaceFolderList

public java.util.List serverWorkspaceFolderList(PropertyNameList wantedPropertyList)
                                         throws WvcmException
Return a list of Folder objects that identify folders on the server that contain workspaces for the Provider of this accessor. If the Provider does not allow the client to create new workspaces on the server, an empty List is returned.

Specified by:
serverWorkspaceFolderList in interface Accessor
Parameters:
wantedPropertyList - The properties available in the returned proxies.
Throws:
WvcmException

initialize

protected void initialize(java.lang.String scheme,
                          java.lang.String hostname,
                          int port)
                   throws java.lang.IllegalStateException
Throws:
java.lang.IllegalStateException

client

protected WebdavAccessor.HttpClientWrapper client()
                                           throws WvcmException
Get the HttpClient of this accessor.

Returns:
a HttpClient
Throws:
WvcmException

getHttpClient

protected WebdavAccessor.HttpClientWrapper getHttpClient(Provider provider,
                                                         java.lang.String scheme,
                                                         java.lang.String hostname,
                                                         int port)
                                                  throws WvcmException
Deprecated. use getHttpClientWrapper()

Throws:
WvcmException

getHttpClientWrapper

protected WebdavAccessor.HttpClientWrapper getHttpClientWrapper(Provider provider,
                                                                java.lang.String scheme,
                                                                java.lang.String hostname,
                                                                int port)
                                                         throws WvcmException
Throws:
WvcmException

defaultContextPath

protected java.lang.String defaultContextPath()
Get context path

Returns:
a String


Copyright (c) 2003 - Apache Software Foundation