Title: AbstractConfigElementList
Description: This is the superclass of each list of ConfigElement classes, representing
all together one "main node" of the FileLister config file.
Title: AbstractFileListerServlet
Description: This servlet is the superclass of each FileLister servlet and provides
the commonly used methods for the extending classes, such as the printing of the
error site(s) or the DimDom access method.
Title: DefineSearchParameters
Description: Simple SearchParameters extending class which stores easily accessible
parameters for the GUI of the define-search site.
This constructor simply copies the values of the given SearchParameters instance,
if the given search mode is "search again", else default values are used for
the search mode sensitive parameters.
Reads the download parameter values from the URL (which are just indexes within
the FileLister list) and packs the wished/clicked files into a zip which is
then sent to the client, together with the right MIME encoding.
If it's the directory input mode, it's checked whether the researching of
the given directory is allowed again or not, depending on the index aging
parameter of the property file, compared with the "last indexed" value and
the current time.
Title: FileListerDownloadServlet
Description: This servlet controls the download-zip-file process, including the
generation and the streaming of the zip file and the producing of text output
for the client while waiting until the file is created.
Title: FileListerViewerServlet
Description: Prepares the DimDom-ready XHTMLSiteData instance which dynamically
generates the output showing the appropriate number of filtered records.
Calls the superclass' constructor and initializes the internal objects JDBC,
directory, index, system, link and zip, each representing one of the major
sections in the xml file and being fully configured with the values of its
section.
Returns the fully qualified file name of the JSP download site which is filled
dynamically to show a virtual progress bar and other interesting remarks during
zip building.
Returns value of the ini-file parameter "index.aging" which defines how old
database values are allowed to be before the directory search is started again
(in seconds).
Builds the HTML to be put into a select box for the sort orders, specified
within the sort orders by the given index (from 1 up to the total amount of
defined sort orders).
Returns the (validated, but nevertheless abstract) directory defined by the
client/user, appended to the root directory value from the property file,
if defined.
Returns the index from which on the results shall be shown (default is 0,
i.e. the first entry, but this value may change during navigation within the
results).
If the given FileListerConfig isn't null, the catched exception is stored
therein and the client is redirected to the error site, else the exception
itself is throw again.
The constructor may be called through the command line and calls the FileLister
through the "non-servlet" constructor which automatically runs the initial
indexing process.
Does the jobs to be done before the result site's frame content sites can
show the results/configuration appropriately:
- reads the configuration file
- verifies that the connection pool is initialized
- verifies that a FileListerConfig instance is initialized and stored within
the session, together with a unique window id (which is stored in the new
FileListerConfig instance) - return the new instance for immediate work
Main initializes the "normal" constructor and handles the various possible
exceptions of the FileHandler application as well as the unexpected, but nevertheless
unloved OutOfMemoryError.
Title: PropertyFileParameters
Description: This class stores the values of the property file, for easy handling
by the FileListerConfig and the PoolHandler/ConnectionPool classes.
Loops over all lists stored in this class and over all FileListerEntry instances
within those lists and selects or unselects all the entries at once, but only
if the given string equals "selectall" or "deselectall".
Opens a buffered file output stream to the file having the previously generated
zip file name and calls the ZipBuilder constructor using this output stream
as well as the file list and the config object received in the constructor.
Title: SQLQueryBuilder
Description: This abstract class defines the methods required by FileLister to
get the wellformed SQL strings for the various database accesses.
This method provides a "security" plugin: If the user didn't click on the
option bar link but on the back button of the browser, the former search configuration
must be removed (in case of "search within results").