org.mmbase.applications.editwizard
Class Config.Configurator
java.lang.Object
org.mmbase.applications.editwizard.Config.Configurator
- Enclosing class:
- Config
- public static class Config.Configurator
- extends java.lang.Object
To fill the Config struct, this 'Configurator' exists. You
could extend it to change wich query parameters must be used,
and what are the defaults and so on.
|
Field Summary |
protected javax.servlet.jsp.PageContext |
page
|
protected javax.servlet.http.HttpServletRequest |
request
|
protected javax.servlet.http.HttpServletResponse |
response
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
page
protected javax.servlet.jsp.PageContext page
request
protected javax.servlet.http.HttpServletRequest request
response
protected javax.servlet.http.HttpServletResponse response
Config.Configurator
public Config.Configurator(javax.servlet.jsp.PageContext pageContext,
Config c)
throws WizardException,
java.net.MalformedURLException
getRealPath
public java.lang.String getRealPath(java.lang.String path)
resolveToFile
public java.io.File resolveToFile(java.lang.String templatePath)
getPage
public javax.servlet.jsp.PageContext getPage()
getParam
protected java.lang.String getParam(java.lang.String paramName)
getParam
protected java.lang.String getParam(java.lang.String paramName,
java.lang.String defaultValue)
getParam
protected int getParam(java.lang.String paramName,
int def)
getParam
protected java.lang.Integer getParam(java.lang.String paramName,
java.lang.Integer def)
getParam
protected boolean getParam(java.lang.String paramName,
boolean def)
getParam
protected java.lang.Boolean getParam(java.lang.String paramName,
java.lang.Boolean def)
fillAttributes
protected void fillAttributes(java.util.Map map)
- Fills the given map with all attributes from the URI, but first all attributes from the
first call are added. No arrays supported, only single values.
- Since:
- MMBase-1.7
getBackPage
public java.lang.String getBackPage()
createList
public Config.ListConfig createList(Cloud cloud)
createList
public Config.ListConfig createList()
- Deprecated. use createList(cloud)
createWizard
public Config.WizardConfig createWizard(Cloud cloud)
throws WizardException
- Throws:
WizardException
config
public void config(Config.SubConfig config)
throws WizardException
- Configure a list or wizard. The configuration object passed is updated with information retrieved
from the request object with which the configurator was created.
- Parameters:
config - the configuration object for the list or wizard.
- Throws:
WizardException- Since:
- MMBase-1.6.4
MMBase build 1.7.1.20041002