org.alltimeflashdreamer.dimdom.websitetester
Class PropertyHandler
java.lang.Object
|
+--org.alltimeflashdreamer.dimdom.websitetester.PropertyHandler
- class PropertyHandler
- extends Object
Title: PropertyHandler
Description: Simple value handler class for the various property file parameters.
Method Summary |
(package private) Exception |
getException()
Returns the exception that came up or null. |
(package private) URL |
getParserServletSiteURL()
Returns the URL of the template file of the parser output site. |
(package private) String |
getProcessorClassName()
Returns the name of the default processor class, as found in the property
file. |
(package private) String |
getXMLTags()
Returns two full line, one for the xml and one for the doctype tags, both
ending with a line separator. |
(package private) boolean |
hasReadingBeenSuccessful()
Returns whether the property file was found and loaded or not. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyHandler
PropertyHandler(HttpServletRequest req,
ServletContext context)
- Reads the property file from the various input source and stores the
state, i.e. whether this succeeded or not.
- Parameters:
req
- the request that lead to the initiation of this classcontext
- the servlet's context, to read a servlet parameter from
hasReadingBeenSuccessful
boolean hasReadingBeenSuccessful()
- Returns whether the property file was found and loaded or not. If this
method returns false, the getException method returns the exception that
occurred.
- Returns:
- everything fine?
getException
Exception getException()
- Returns the exception that came up or null.
- Returns:
- not null only if the hasReadingBeenSuccessful method returns
true
getXMLTags
String getXMLTags()
- Returns two full line, one for the xml and one for the doctype tags, both
ending with a line separator.
- Returns:
- xml-tag + newline + doctype-tag + newline
getParserServletSiteURL
URL getParserServletSiteURL()
- Returns the URL of the template file of the parser output site. This URL
has been validated during reading of the property file.
- Returns:
- the URL, ready to open as an input stream
getProcessorClassName
String getProcessorClassName()
- Returns the name of the default processor class, as found in the property
file.
- Returns:
- the full class name of the input processor class