jacquard 1.12.0 by The Web Engineering Factory and Toolworks

uk.co.weft.configurator
Class DatabaseAwareConfigurator

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byuk.co.weft.maybeupload.MaybeUploadServlet
              extended byuk.co.weft.htform.Servlet
                  extended byuk.co.weft.htform.WithExceptionHandlerServlet
                      extended byuk.co.weft.htform.Page
                          extended byuk.co.weft.htform.Form
                              extended byuk.co.weft.configurator.BasicConfigurator
                                  extended byuk.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

Nested Class Summary
 
Nested classes inherited from class uk.co.weft.configurator.BasicConfigurator
BasicConfigurator.ConfiguredWidgetSet, BasicConfigurator.ConfigureWidget
 
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.WithExceptionHandlerServlet
EXCEPTIONHANDLERCLASSCONFIGTOKEN
 
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
 
Fields inherited from class uk.co.weft.maybeupload.MaybeUploadServlet
allowOverwrite, maxUpload, saveUploadedFilesToDisk, silentlyRename, uploadDir, uploadDirPath, uploadDirURL
 
Fields inherited from interface uk.co.weft.htform.ResourceConsumer
RESOURCEBUNDLEMAGICTOKEN
 
Constructor Summary
DatabaseAwareConfigurator()
           
 
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.WithExceptionHandlerServlet
whinge, whinge, whinge
 
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 uk.co.weft.maybeupload.MaybeUploadServlet
doDelete, doHead, doOptions, doPut, doTrace, getUploadDir, getUploadURL, service
 
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
 
Methods inherited from interface uk.co.weft.domutil.DocumentGenerator
destroy
 

Field Detail

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
Constructor Detail

DatabaseAwareConfigurator

public DatabaseAwareConfigurator()
Method Detail

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

jacquard 1.12.0 by The Web Engineering Factory and Toolworks