|
Weaver 3.1.0a1-D1 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.oldlight.weaver.interpreter.WeaverApplicationContextImpl
Storage of application scoped (context wide) values.
Field Summary | |
private Map |
initParameterMap
|
private Object |
initParameterMapSync
|
private Properties |
properties
|
private ServletContext |
servletContext
|
private String |
uploadDir
|
Constructor Summary | |
WeaverApplicationContextImpl(ServletContext theServletContext,
Properties theProperties)
Create a new application context. |
Method Summary | |
Object |
getAttribute(String name)
Get an application scoped attribute. |
Map |
getAttributeMap()
Get an attribute name to value map. |
String |
getConfigValue(String name)
Retrieve the global/context-wide configuration value. |
Set |
getConfigValueNames()
Get all configuration value names. |
String |
getInitParameter(String name)
Get a global/context-wide parameter. |
Map |
getInitParameterMap()
Get a map of init param names to values. |
String |
getMimeType(String file)
Return the MIME type of a given file. |
String |
getRealPath(String thePath)
Returns a String containing the real path for a given virtual path. |
String |
getUploadDir()
|
void |
removeAttribute(String name)
Remove an application scoped attribute. |
void |
setAttribute(String name,
Object value)
Set an application scoped attribute. |
void |
setUploadDir(String uploadDir)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private ServletContext servletContext
private Properties properties
private String uploadDir
private Map initParameterMap
private Object initParameterMapSync
Constructor Detail |
public WeaverApplicationContextImpl(ServletContext theServletContext, Properties theProperties)
theServletContext
- Servlet context in which the application is running.theProperties
- Global configuration.Method Detail |
public String getUploadDir()
public void setUploadDir(String uploadDir)
public String getMimeType(String file)
getMimeType
in interface WeaverApplicationContext
file
- The name of the file from which to determine the MIME type.
public String getConfigValue(String name)
getConfigValue
in interface WeaverApplicationContext
name
- Name of the config value to retrieve.
public Set getConfigValueNames()
getConfigValueNames
in interface WeaverApplicationContext
public String getRealPath(String thePath)
getRealPath
in interface WeaverApplicationContext
thePath
- The virtual path.
public Object getAttribute(String name)
getAttribute
in interface WeaverApplicationContext
name
- The name of the attribute to be retrieved.
public void setAttribute(String name, Object value)
setAttribute
in interface WeaverApplicationContext
name
- The name of the attribute to set.value
- The value to set the attribute to.public void removeAttribute(String name)
removeAttribute
in interface WeaverApplicationContext
name
- The name of the attribute to remove.public Map getAttributeMap()
public String getInitParameter(String name)
getInitParameter
in interface WeaverApplicationContext
name
- The name of the parameter to retrieve in the form of a '/' separated path.
public Map getInitParameterMap()
|
Copyright ©Paul Harvey | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |