The abstract Action class
Contains
reference to the parent Application
Base-derived objects
parameters (that can be any objects identified by a string-key)
one ActionResult
And provides logging services (simply forward the log-requests to underlying application)
Default constructor with no parameters, initializing the Application with
Crimson XMLReaderImpl SAX2 parser for source files
Crimson XMLReaderImpl SAX2 parser for style files
default MySQL database driver class
default Windows-1250 encoding and
default EXT prefix ("ext") and default EXT URI ("http://ext.cz")
logging to System.err
General Application constructor
defaulting the TREE_MODEL to TINY_TREE
allocating the app-level XML names under the ext namespace
registering the tomp.ext.cmd.GenericAction.class as the default Action.class
This Base class a basic class for all EXT classes that do the "real" work:
providing source and style for transformations,
performing the transformations,
Actually perfoms the HttpServlet.service(req, res) method that
is forwarded to this method by the extended EXTServlet.service(req, res)
The method creates and launches actions according to the:
HttpSession bound to the request and
request parameter action
Actually perfoms the HttpServlet.service(req, res) method that
is forwarded to this method by the extended EXTServlet.service(req, res)
The method creates and launches actions according to the:
HttpSession bound to the request and
request parameter action
Transformation2Response class does a XSLT transformation of provided Source via specified Style to the HttpServletResponse.getOutputStream() output stream.
The Validator has only one method boolean validate(Source source) that tests the validity of the source
and provides info whether the validation was successful, i.e. whether the Source was valid.