org.ow2.weblab.services.sourcereader
Class FolderSourceReaderService

java.lang.Object
  extended by org.ow2.weblab.services.sourcereader.FolderSourceReaderService
All Implemented Interfaces:
org.weblab_project.services.configurable.Configurable, org.weblab_project.services.sourcereader.SourceReader

public class FolderSourceReaderService
extends java.lang.Object
implements org.weblab_project.services.sourcereader.SourceReader, org.weblab_project.services.configurable.Configurable

FolderSourceReaderService.java

To do:
Add some comments

Field Summary
static java.lang.String ANNOT_SOURCE_PROPERTY_NAME
           
static java.lang.String CRAWL_URL_PROPERTY
           
protected static java.lang.String CRAWLER_ID
           
static java.lang.String DEFAULT_FOLDER_URL_PROPERTY_NAME
           
static java.lang.String DELETE_FILE_AFTER_PROPERTY_NAME
           
static java.lang.String EXTENSIONS_FILTER_PROPERTY_NAME
           
static java.lang.String EXTENSIONS_REJECT_PROPERTY_NAME
           
static java.lang.String FOLDERS_EXTENSIONS_FILTER_PROPERTY_NAME
           
static java.lang.String FOLDERS_EXTENSIONS_REJECT_PROPERTY_NAME
           
static java.lang.String FOLDERS_FILTER_PROPERTY_NAME
           
static java.lang.String FOLDERS_REJECT_PROPERTY_NAME
           
static java.lang.String RECURSIVE_PROPERTY_NAME
           
static java.lang.String SERVICE_URI
           
static java.lang.String SOURCE_PROPERTY_NAME
           
static java.lang.String WEBLAB_GATHERING_NAMESPACE
           
 
Constructor Summary
FolderSourceReaderService()
           
 
Method Summary
 org.weblab_project.services.configurable.types.ConfigureReturn configure(org.weblab_project.services.configurable.types.ConfigureArgs args)
           
 org.weblab_project.services.sourcereader.types.GetResourceReturn getResource(org.weblab_project.services.sourcereader.types.GetResourceArgs args)
           
protected  void listAndAddFiles(java.io.File folderToCrawl, java.io.FileFilter filter, java.lang.String usContextUri)
           
 org.weblab_project.services.configurable.types.ResetConfigurationReturn resetConfiguration(org.weblab_project.services.configurable.types.ResetConfigurationArgs args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE_URI

public static final java.lang.String SERVICE_URI
See Also:
Constant Field Values

WEBLAB_GATHERING_NAMESPACE

public static final java.lang.String WEBLAB_GATHERING_NAMESPACE
See Also:
Constant Field Values

CRAWL_URL_PROPERTY

public static final java.lang.String CRAWL_URL_PROPERTY
See Also:
Constant Field Values

DEFAULT_FOLDER_URL_PROPERTY_NAME

public static final java.lang.String DEFAULT_FOLDER_URL_PROPERTY_NAME
See Also:
Constant Field Values

RECURSIVE_PROPERTY_NAME

public static final java.lang.String RECURSIVE_PROPERTY_NAME
See Also:
Constant Field Values

DELETE_FILE_AFTER_PROPERTY_NAME

public static final java.lang.String DELETE_FILE_AFTER_PROPERTY_NAME
See Also:
Constant Field Values

EXTENSIONS_FILTER_PROPERTY_NAME

public static final java.lang.String EXTENSIONS_FILTER_PROPERTY_NAME
See Also:
Constant Field Values

EXTENSIONS_REJECT_PROPERTY_NAME

public static final java.lang.String EXTENSIONS_REJECT_PROPERTY_NAME
See Also:
Constant Field Values

FOLDERS_FILTER_PROPERTY_NAME

public static final java.lang.String FOLDERS_FILTER_PROPERTY_NAME
See Also:
Constant Field Values

FOLDERS_REJECT_PROPERTY_NAME

public static final java.lang.String FOLDERS_REJECT_PROPERTY_NAME
See Also:
Constant Field Values

FOLDERS_EXTENSIONS_FILTER_PROPERTY_NAME

public static final java.lang.String FOLDERS_EXTENSIONS_FILTER_PROPERTY_NAME
See Also:
Constant Field Values

FOLDERS_EXTENSIONS_REJECT_PROPERTY_NAME

public static final java.lang.String FOLDERS_EXTENSIONS_REJECT_PROPERTY_NAME
See Also:
Constant Field Values

ANNOT_SOURCE_PROPERTY_NAME

public static final java.lang.String ANNOT_SOURCE_PROPERTY_NAME
See Also:
Constant Field Values

SOURCE_PROPERTY_NAME

public static final java.lang.String SOURCE_PROPERTY_NAME
See Also:
Constant Field Values

CRAWLER_ID

protected static final java.lang.String CRAWLER_ID
See Also:
Constant Field Values
Constructor Detail

FolderSourceReaderService

public FolderSourceReaderService()
Method Detail

getResource

public org.weblab_project.services.sourcereader.types.GetResourceReturn getResource(org.weblab_project.services.sourcereader.types.GetResourceArgs args)
                                                                             throws org.weblab_project.services.sourcereader.GetResourceException
Specified by:
getResource in interface org.weblab_project.services.sourcereader.SourceReader
Throws:
org.weblab_project.services.sourcereader.GetResourceException

listAndAddFiles

protected void listAndAddFiles(java.io.File folderToCrawl,
                               java.io.FileFilter filter,
                               java.lang.String usContextUri)

configure

public org.weblab_project.services.configurable.types.ConfigureReturn configure(org.weblab_project.services.configurable.types.ConfigureArgs args)
                                                                         throws org.weblab_project.services.configurable.ConfigureException
Specified by:
configure in interface org.weblab_project.services.configurable.Configurable
Throws:
org.weblab_project.services.configurable.ConfigureException

resetConfiguration

public org.weblab_project.services.configurable.types.ResetConfigurationReturn resetConfiguration(org.weblab_project.services.configurable.types.ResetConfigurationArgs args)
                                                                                           throws org.weblab_project.services.configurable.ResetConfigurationException
Specified by:
resetConfiguration in interface org.weblab_project.services.configurable.Configurable
Throws:
org.weblab_project.services.configurable.ResetConfigurationException


Copyright © 2004-2010. All Rights Reserved.