fr.paris5.shaman.insight.content
Class WebdavConnector

fr.paris5.shaman.insight.content.WebdavConnector
All Implemented Interfaces:
LegendConnector

public class WebdavConnector
implements LegendConnector

Implementation of LegendConnector for pulling content out of a WebDAV server.

Version:
$Id: WebdavConnector.java,v 1.2 2002/08/07 13:30:53 caillette Exp $
Author:
Laurent Caillette

Inner Class Summary
private  class WebdavConnector.WebdavImportableResources
           
 
Field Summary
private  org.apache.avalon.framework.component.ComponentManager componentManager
           
private  int webdavBasePathLength
           
private  java.net.URL webdavBaseURL
           
 
Fields inherited from interface fr.paris5.shaman.insight.content.LegendConnector
ROLE
 
Constructor Summary
WebdavConnector()
           
 
Method Summary
 void compose(org.apache.avalon.framework.component.ComponentManager componentManager)
           
 LegendResources enumerateResources(ImportParameters importParameters)
          Exceptions listed are supposed to be thrown only when a problem occurs during connection to Legend repository.
private  void enumerateResources(ImportParameters importParameters, WebdavConnector.WebdavImportableResources importableResources, org.apache.webdav.lib.WebdavResource root)
           
 void initialize()
           
 

Field Detail

webdavBaseURL

private java.net.URL webdavBaseURL

webdavBasePathLength

private int webdavBasePathLength

componentManager

private org.apache.avalon.framework.component.ComponentManager componentManager
Constructor Detail

WebdavConnector

public WebdavConnector()
Method Detail

compose

public void compose(org.apache.avalon.framework.component.ComponentManager componentManager)
             throws org.apache.avalon.framework.component.ComponentException

initialize

public void initialize()
                throws java.lang.Exception

enumerateResources

private void enumerateResources(ImportParameters importParameters,
                                WebdavConnector.WebdavImportableResources importableResources,
                                org.apache.webdav.lib.WebdavResource root)

enumerateResources

public LegendResources enumerateResources(ImportParameters importParameters)
                                   throws java.lang.Exception
Description copied from interface: LegendConnector
Exceptions listed are supposed to be thrown only when a problem occurs during connection to Legend repository. When an exception is thrown for a given resource, it should be associated with ImportableResources.setProblem( String, Throwable ).
Specified by:
enumerateResources in interface LegendConnector
Following copied from interface: fr.paris5.shaman.insight.content.LegendConnector
Parameters:
importParameters -  
Returns:
 
Throws:
java.lang.Exception - When connecting to Legend for fetching content information.


Copyright © 2002 Laurent Caillette and l'Université René Descartes, Paris 5. All rights reserved.