uk.co.weft.configurator
Class DatabaseAwareConfigurator
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
uk.co.weft.maybeupload.MaybeUploadServlet
uk.co.weft.htform.Servlet
uk.co.weft.htform.WithExceptionHandlerServlet
uk.co.weft.htform.Page
uk.co.weft.htform.Form
uk.co.weft.configurator.BasicConfigurator
uk.co.weft.configurator.DatabaseAwareConfigurator
- All Implemented Interfaces:
- DocumentGenerator, ResourceConsumer, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
- public class DatabaseAwareConfigurator
- extends BasicConfigurator
A configurator which knows some stuff about databases which is common
to a lot of Jacquard applications.
- Author:
- simon
Created on 01-Jun-2004
$Revision: 1.3.4.1 $
- See Also:
- Serialized Form
|
Field Summary |
static java.lang.String |
DBDRIVERTOKEN
A token on which I shall store in the context the name of the
database driver to use |
static java.lang.String |
DBHOSTTOKEN
A token whose value in the context should be the fully qualified DNS
name of the host from which the dtabase is served |
static java.lang.String |
DBINITTOKEN
A token on which I shall store in the context the name of the
database initialisation script |
static java.lang.String |
DBNAMETOKEN
A token whose value in the context should be the name of the
database to connect to |
static java.lang.String |
DBPORTTOKEN
A token whose value in the context should be the port number on which
the host named in DBHOSTTOKEN listens for database connections |
static java.lang.String |
DBTYPE_MSSQL2K
'standardised' names of databases, to be used as option values in
parameters.xml |
static java.lang.String |
DBTYPE_ORACLE8
'standardised' names of databases, to be used as option values in
parameters.xml |
static java.lang.String |
DBTYPE_POSTGRES7
'standardised' names of databases, to be used as option values in
parameters.xml |
static java.lang.String |
DBTYPETOKEN
A token whose value in the context should be one of the standardised
database names |
static java.lang.String |
DBURLTOKEN
A token on which I shall store in the context the database URL
computed. |
| Fields inherited from class uk.co.weft.configurator.BasicConfigurator |
APPNAMETOKEN, CACHENAME, CONFIGURATIONTAG, DEFAULTATTR, DELIVERYPACKAGEURLTOKEN, DESTINATIONATTR, FILETAG, HELPTAG, intro, INTROTAG, MANDATORYATTR, NAMEATTR, NOAMPERSANDVALUESTOKEN, OPTIONTAG, PARAMETERTAG, PARAMSTOKEN, payloadName, PAYLOADNAMETOKEN, payloadPath, PAYLOADTOKEN, PROMPTATTR, SIZEATTR, SOURCEATTR, stagePath, STAGINGAREATOKEN, TITLETAG |
| Fields inherited from class uk.co.weft.htform.Form |
action, actionExecutedToken, ACTIONEXECUTEDTOKEN, auxiliaries, contextMenuMagicToken, CONTEXTMENUMAGICTOKEN, cssHelp, CSSHELP, cssPrompt, CSSPROMPT, defaultScriptBase, mandatoryPrompt, MIN_WIDGETS, onloadFunctionToken, ONLOADFUNCTIONTOKEN, optionalPrompt, selectedWidgetSetMagicToken, SELECTEDWIDGETSETMAGICTOKEN, showHeadline, submitMethod, SUBMITMETHODCONFIGTOKEN, SUBMITMETHODGET, SUBMITMETHODPOST, validationWhingeToken, VALIDATIONWHINGETOKEN, whingeHeader, widgets, widgetSets |
| Fields inherited from class uk.co.weft.htform.Page |
DOCTYPECONFIGTOKEN, dynamicFootInclude, dynamicHeadInclude, footInclude, footIncludeURL, headInclude, headIncludeURL, imageUrlBase, layout, printStylesheet, PRINTSTYLESHEETCONFIGTOKEN, stylesheet, STYLESHEETCONFIGTOKEN, title, titleMagicToken, TITLEMAGICTOKEN |
| Fields inherited from class uk.co.weft.htform.Servlet |
calendar, conf, contentType, CONTENTTYPECONFIGTOKEN, cookieDomain, cookiePath, COOKIESCONFIGTOKEN, cookieTTL, dbPassword, dbUrl, dbUsername, debug, DEBUGCONFIGTOKEN, driverName, embedded, here, identity, localeMagicToken, LOCALEMAGICTOKEN, outputStreamMagicToken, OUTPUTSTREAMMAGICTOKEN, parsePathInfo, PATHINFOMAGICTOKEN, ready, redirectMagicToken, REDIRECTMAGICTOKEN, requestMagicToken, REQUESTMAGICTOKEN, resourceBundleName, responseMagicToken, RESPONSEMAGICTOKEN, servletMagicToken, SERVLETMAGICTOKEN, sessionMagicToken, SESSIONMAGICTOKEN, USEHTTPSCONFIGTOKEN, zone |
|
Method Summary |
protected void |
configure(Context context)
Assemble things needed by the config process from simpler things
provided by pres-parameters.xml. |
| Methods inherited from class uk.co.weft.configurator.BasicConfigurator |
deleteDir, fetchPayload, fixXMLSyntaxChars, getParameters, init, patchFile, preForm, preProcess, repack, validate, validatePayload, validateStage |
| Methods inherited from class uk.co.weft.htform.Form |
addAuxiliary, addWidget, defaultActionHandler, doBody, doHead, doHeadBodySep, fixupMagicValues, generate, getLayout, getNextActionURL, getSelectedWidgetSet, getTitle, getTransformURL, getWidgetSetByName, handleAction, hasWidgets, makeReady, postForm, postProcess, selectNextWidgetSet, setContextMenuQuery |
| Methods inherited from class uk.co.weft.htform.Page |
doFoot, doFoot, generateContent, getFootInclude, getFootIncludeURL, getFootIncludeURL, getHeadInclude, getHeadIncludeURL, getHeadIncludeURL, getStylesheet, getStylesheets, getTables, getTitle, outputRedirectBlock, readStringFromURL |
| Methods inherited from class uk.co.weft.htform.Servlet |
addCookie, addCookie, coerceCookiesToContext, coerceToContext, coerceToContext, coerceToContext, coerceToContext, coerceToUrl, createContext, doGet, doPost, getCalendar, getContentType, getDebug, getLocale, getOutputStream, getResource, getResourceString, getServletInfo, grs, grs, handleCookies, handleRedirect, init, setCookieValues, storeOnSession |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DBTYPETOKEN
public static final java.lang.String DBTYPETOKEN
- A token whose value in the context should be one of the standardised
database names
- See Also:
- Constant Field Values
DBHOSTTOKEN
public static final java.lang.String DBHOSTTOKEN
- A token whose value in the context should be the fully qualified DNS
name of the host from which the dtabase is served
- See Also:
- Constant Field Values
DBPORTTOKEN
public static final java.lang.String DBPORTTOKEN
- A token whose value in the context should be the port number on which
the host named in DBHOSTTOKEN listens for database connections
- See Also:
- Constant Field Values
DBNAMETOKEN
public static final java.lang.String DBNAMETOKEN
- A token whose value in the context should be the name of the
database to connect to
- See Also:
- Constant Field Values
DBURLTOKEN
public static final java.lang.String DBURLTOKEN
- A token on which I shall store in the context the database URL
computed.
- See Also:
- Constant Field Values
DBDRIVERTOKEN
public static final java.lang.String DBDRIVERTOKEN
- A token on which I shall store in the context the name of the
database driver to use
- See Also:
- Constant Field Values
DBINITTOKEN
public static final java.lang.String DBINITTOKEN
- A token on which I shall store in the context the name of the
database initialisation script
- See Also:
- Constant Field Values
DBTYPE_POSTGRES7
public static final java.lang.String DBTYPE_POSTGRES7
- 'standardised' names of databases, to be used as option values in
parameters.xml
- See Also:
- Constant Field Values
DBTYPE_ORACLE8
public static final java.lang.String DBTYPE_ORACLE8
- 'standardised' names of databases, to be used as option values in
parameters.xml
- See Also:
- Constant Field Values
DBTYPE_MSSQL2K
public static final java.lang.String DBTYPE_MSSQL2K
- 'standardised' names of databases, to be used as option values in
parameters.xml
- See Also:
- Constant Field Values
DatabaseAwareConfigurator
public DatabaseAwareConfigurator()
configure
protected void configure(Context context)
throws java.lang.Exception
- Assemble things needed by the config process from simpler things
provided by pres-parameters.xml.
- Overrides:
configure in class BasicConfigurator
- Throws:
java.lang.Exception