|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.melati.MelatiConfig
public class MelatiConfig
A MelatiConfig loads and provides access to the configuration parameters for melati. These are held in org.melati.MelatiConfig.properties.
Constructor Summary | |
---|---|
MelatiConfig()
Allows creation of a MelatiConfig with default config
params. |
|
MelatiConfig(Properties properties)
Constructor from a given Properties object. |
|
MelatiConfig(String propertiesName)
Allows creation of a MelatiConfig with a specified
properties file. |
Method Summary | |
---|---|
AccessHandler |
getAccessHandler()
|
FormDataAdaptorFactory |
getFdaFactory()
|
FormDataAdaptorFactory |
getFormDataAdaptorFactory()
|
String |
getJavascriptLibraryURL()
|
static String |
getLoginPageServletClassName()
|
static String |
getLogoutPageServletClassName()
|
static PoemLocale |
getPoemLocale()
|
List<String> |
getPreferredCharsets()
Return the set encodings that the server prefers and supports. |
String |
getRealPath()
|
ServletTemplateEngine |
getServletTemplateEngine()
|
static SimpleDateAdaptor |
getSimpleDateAdaptor()
Called from within templets. |
String |
getStaticURL()
Normally set to melati-static . |
TemplateEngine |
getTemplateEngine()
|
String |
getTemplatePath()
|
TempletLoader |
getTempletLoader()
|
static YMDDateAdaptor |
getYMDDateAdaptor()
Called from within templets using
#set $yearField = $melati.Config.YMDDateAdaptor.yearField($field)
idiom. |
static YMDHMSTimestampAdaptor |
getYMDHMSTimestampAdaptor()
Called from within templets using
#set $secondField = $melati.Config.YMDHMSTimestampAdaptor.secondField($field)
idiom. |
void |
setAccessHandler(AccessHandler accessHandler)
Set the AccessHandler for use by this Melati. |
void |
setFdaFactory(FormDataAdaptorFactory fdaFactory)
|
void |
setFormDataAdaptorFactory(FormDataAdaptorFactory fdaf)
Set the FormDataAdaptorFactory for use by this Melati. |
void |
setJavascriptLibraryURL(String url)
Set the JavascriptLibraryURL for use by this Melati. |
static void |
setLoginPageServletClassName(String loginPageServletClassName)
|
static void |
setLogoutPageServletClassName(String logoutPageServletClassName)
|
void |
setPoemiLocale(PoemLocale poemLocale)
|
void |
setPreferredCharsets(Vector<String> preferredCharsets)
|
void |
setRealPath(String realPathP)
|
void |
setStaticURL(String url)
Set the StaticURL for use by this Melati. |
void |
setTemplateEngine(TemplateEngine templateEngine)
Set the TemplateEngine to use. |
void |
setTemplatePath(String templatePath)
|
void |
setTempletLoader(TempletLoader templetLoader)
Set the TempletLoader for use by this Melati. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MelatiConfig()
MelatiConfig
with default config
params.
public MelatiConfig(String propertiesName)
MelatiConfig
with a specified
properties file.
propertiesName
- the name of a properties filepublic MelatiConfig(Properties properties)
properties
- the properties object to look inMethod Detail |
---|
public ServletTemplateEngine getServletTemplateEngine()
ServletTemplateEngine
in use.public TemplateEngine getTemplateEngine()
TemplateEngine
in use.public void setTemplateEngine(TemplateEngine templateEngine)
TemplateEngine
to use.
templateEngine
- a TemplateEngine
public AccessHandler getAccessHandler()
AccessHandler
public void setAccessHandler(AccessHandler accessHandler)
AccessHandler
for use by this Melati.
accessHandler
- a AccessHandler
public TempletLoader getTempletLoader()
TempletLoader
public void setTempletLoader(TempletLoader templetLoader)
TempletLoader
for use by this Melati.
templetLoader
- a TempletLoader
public FormDataAdaptorFactory getFormDataAdaptorFactory()
FormDataAdaptorFactory
public void setFormDataAdaptorFactory(FormDataAdaptorFactory fdaf)
FormDataAdaptorFactory
for use by this Melati.
fdaf
- a FormDataAdaptorFactory
public String getJavascriptLibraryURL()
public void setJavascriptLibraryURL(String url)
JavascriptLibraryURL
for use by this Melati.
url
- a URL to the directory containing the JavaScript for this sitepublic String getStaticURL()
melati-static
.
public void setStaticURL(String url)
StaticURL
for use by this Melati.
url
- a URL to the directory containing the static contentpublic String getTemplatePath()
public void setTemplatePath(String templatePath)
templatePath
- The templatePath to set.public static String getLogoutPageServletClassName()
public static void setLogoutPageServletClassName(String logoutPageServletClassName)
logoutPageServletClassName
- The logoutPageServletClassName to set.public static String getLoginPageServletClassName()
public static void setLoginPageServletClassName(String loginPageServletClassName)
loginPageServletClassName
- The loginPageServletClassName to set.public static PoemLocale getPoemLocale()
public void setPoemiLocale(PoemLocale poemLocale)
poemLocale
- The PoemLocale to set.public List<String> getPreferredCharsets()
public void setPreferredCharsets(Vector<String> preferredCharsets)
preferredCharsets
- The preferredCharsets to set.public FormDataAdaptorFactory getFdaFactory()
public void setFdaFactory(FormDataAdaptorFactory fdaFactory)
fdaFactory
- The fdaFactory to set.public static YMDDateAdaptor getYMDDateAdaptor()
#set $yearField = $melati.Config.YMDDateAdaptor.yearField($field)
idiom.
Perhaps this should be elsewhere.
public static YMDHMSTimestampAdaptor getYMDHMSTimestampAdaptor()
#set $secondField = $melati.Config.YMDHMSTimestampAdaptor.secondField($field)
idiom.
Perhaps this should be elsewhere.
public static SimpleDateAdaptor getSimpleDateAdaptor()
public void setRealPath(String realPathP)
realPathP
- the path to setpublic String getRealPath()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |