edu.psu.ist.youseer
Class SubmitterConfig

java.lang.Object
  extended by edu.psu.ist.youseer.SubmitterConfig

public class SubmitterConfig
extends java.lang.Object


Field Summary
 java.lang.String CACHE
          The solr field that will store the location of the cached version of this file
 java.lang.String CacheFolder
          The path that will have the ARC files under it
 java.lang.String DatabaseProvider
          Database provider, read from the XML configuration file
 java.lang.String DBConnectionString
          The database connection string, read from the XML configuration file
 java.lang.String DOCUMENT_TEXT
          The solr field that will store the content
 java.lang.String FILE_TYPE
          The solr field that will store the file type of the document
 java.util.HashSet IndexedTypes
          Contains a set of all the Indexable file types, populated from the XML Configuration file
 java.lang.String IndexURL
          The URL of the index
 java.lang.String OFFSET
          The solr field that will store the offset within the ARC file
 java.lang.String OriginalPart
          The absolute path of the root folder that contains the ARC files
 java.lang.String TITLE
          The solr field that will store the title
 java.lang.String URL
          The solr field that will store the URL
 
Constructor Summary
SubmitterConfig()
           
SubmitterConfig(java.lang.String Url, java.lang.String Title, java.lang.String Document_Text, java.lang.String File_Type, java.lang.String Cache, java.lang.String offset)
           
 
Method Summary
 boolean ReadConfigFile(java.lang.String path)
          Reads the SubmitterConfig.xml file, and populates the data of this class.
private  boolean ValidateConfig()
          Validates this object after populating it from the XML configuration file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URL

public java.lang.String URL
The solr field that will store the URL


TITLE

public java.lang.String TITLE
The solr field that will store the title


DOCUMENT_TEXT

public java.lang.String DOCUMENT_TEXT
The solr field that will store the content


FILE_TYPE

public java.lang.String FILE_TYPE
The solr field that will store the file type of the document


CACHE

public java.lang.String CACHE
The solr field that will store the location of the cached version of this file


OFFSET

public java.lang.String OFFSET
The solr field that will store the offset within the ARC file


IndexedTypes

public java.util.HashSet IndexedTypes
Contains a set of all the Indexable file types, populated from the XML Configuration file


IndexURL

public java.lang.String IndexURL
The URL of the index


CacheFolder

public java.lang.String CacheFolder
The path that will have the ARC files under it


OriginalPart

public java.lang.String OriginalPart
The absolute path of the root folder that contains the ARC files


DatabaseProvider

public java.lang.String DatabaseProvider
Database provider, read from the XML configuration file


DBConnectionString

public java.lang.String DBConnectionString
The database connection string, read from the XML configuration file

Constructor Detail

SubmitterConfig

public SubmitterConfig()

SubmitterConfig

public SubmitterConfig(java.lang.String Url,
                       java.lang.String Title,
                       java.lang.String Document_Text,
                       java.lang.String File_Type,
                       java.lang.String Cache,
                       java.lang.String offset)
Method Detail

ReadConfigFile

public boolean ReadConfigFile(java.lang.String path)
Reads the SubmitterConfig.xml file, and populates the data of this class. It validates the data before returning to ARCSubmitter

Parameters:
path - the path to the configuration file
Returns:
true if the XML file was read and parsed correctlly, and the content is valid, false otherwise

ValidateConfig

private boolean ValidateConfig()
Validates this object after populating it from the XML configuration file.

Returns:
ture if valid, false otherwise