|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.mkdoc.util.AbstractApplicationContext | +--com.mkdoc.servlet.ServletApplicationContext
A servlet application context.
Field Summary | |
static java.lang.String |
STORE_PATH
The default store file path, relative to the application context path. |
Fields inherited from interface com.mkdoc.util.ApplicationContext |
ABSOLUTE, DIRECTORY, REPOSITORY |
Constructor Summary | |
ServletApplicationContext(javax.servlet.ServletContext context)
Provide a wrapper for a servlet context. |
Method Summary | |
boolean |
getBooleanParameter(java.lang.String name)
Get a named parameter value. |
java.lang.Class |
getClassParameter(java.lang.String name)
Get a named parameter value. |
protected java.io.File |
getDefaultStoreDirectory()
Get the default store directory. |
java.lang.String |
getStringParameter(java.lang.String name)
Get a named parameter value. |
Methods inherited from class com.mkdoc.util.AbstractApplicationContext |
getStoreDirectory, getStorePath |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.mkdoc.util.ApplicationContext |
getStoreDirectory, getStorePath |
Field Detail |
public static final java.lang.String STORE_PATH
Constructor Detail |
public ServletApplicationContext(javax.servlet.ServletContext context)
context
- A context obtained from the servlet container.Method Detail |
public final java.lang.String getStringParameter(java.lang.String name)
getStringParameter
in interface ApplicationContext
name
- The name of the parameter to look up.
null
if not
found.public final java.lang.Class getClassParameter(java.lang.String name)
getClassParameter
in interface ApplicationContext
name
- The name of the parameter to look up.
null
if there is a problem loading the class.public final boolean getBooleanParameter(java.lang.String name)
getBooleanParameter
in interface ApplicationContext
name
- The name of the parameter to look up.
false
if
not found.protected final java.io.File getDefaultStoreDirectory()
getDefaultStoreDirectory
in class AbstractApplicationContext
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |