| |
|
| java.lang.Object dinamica.Config
Config | public class Config (Code) | | Encapsulates access to the XML configuration
of a framework transaction
Creation date: oct/4/2003
Last Update: jan/3/2005
(c) 2003 Martin Cordova
This code is released under the LGPL license
author: Martin Cordova |
_doc | Document _doc(Code) | | xml parser objects
|
contentType | public String contentType(Code) | | output content-type
|
headers | public String headers(Code) | | flag that indicates if http headers shoud be set
|
onErrorAction | public String onErrorAction(Code) | | customized error handler for this action -if any-
|
outClassName | public String outClassName(Code) | | output classname
|
requestEncoding | public String requestEncoding(Code) | | specific request encoding for the current Action
|
templateEncoding | public String templateEncoding(Code) | | encoding used to read template files
|
transClassName | public String transClassName(Code) | | transaction classname
|
transDataSource | public String transDataSource(Code) | | transaction datasource
|
transTransactions | public String transTransactions(Code) | | automatic transactions
|
transValidator | public String transValidator(Code) | | transaction validator
|
validatorInSession | public String validatorInSession(Code) | | save request parameters as session attributes using their names as IDs
|
Config | public Config(String xmlData, String path) throws Throwable(Code) | | Default constructor
Parameters: xmlData - Transaction configuration data in XML Parameters: path - Transaction directory relative to the context throws: Throwable - |
getConfigValue | public String getConfigValue(String tagName) throws Throwable(Code) | | Provides easy access to custom elements in config.xml file
Parameters: tagName - An element or tag name under the root element. Supports XPath expressions. Element value throws: Throwable - if the element cannot be found |
getConfigValue | public String getConfigValue(String tagName, String value) throws Throwable(Code) | | Provides easy access to custom elements in config.xml file
Parameters: tagName - An element or tag name under the root element. Supports XPath expressions. Parameters: value - Default value - This is returned if the element cannot be found Element's value or default value if Element was now found throws: Throwable - On XML parser exceptions |
getDocument | public Document getDocument()(Code) | | Provide access to Electric XML document object
|
getPrintCommands | public Recordset getPrintCommands()(Code) | | Return configuration for print (dtaa-binding) commands defined in transaction config.xml file
Recordset with fields: mode, recordset, tag, control |
getRecordsets | public Recordset getRecordsets()(Code) | | Return configuration for auto-create recordsets defined in transaction config.xml file
Recordset with fields: id, source and scope. |
getUriForExitCode | public String getUriForExitCode(int exitCode) throws Throwable(Code) | | Return URI to foward on a given exit code
Parameters: exitCode - throws: Throwable - |
|
|
|