|
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.WeaverServletContextImpl
Representation of the servlet.
Field Summary | |
private WeaverApplication |
application
|
private HashMap |
attributes
|
private long |
creationTime
|
private Map |
initParamMap
|
private Object |
initParamMapSync
|
private Properties |
properties
|
private ServletConfig |
servletConfig
|
Constructor Summary | |
WeaverServletContextImpl(WeaverApplication application,
ServletConfig servletConfig,
Properties properties)
Create a new WeaverServletContextImpl object. |
Method Summary | |
WeaverApplication |
getApplication()
Get the definition of the application being executed. |
String |
getApplicationDate()
Gets the application date as set in the WAD file. |
String |
getApplicationName()
Gets the application name as set in the WAD file. |
String |
getApplicationVersion()
Gets the application version as set in the WAD file. |
Object |
getAttribute(String name)
Get the value of a named servlet scoped attribute. |
Map |
getAttributeMap()
Get a map of servlet scoped attribute names to values. |
String |
getAuthorEmail()
Gets the author email address as set in the WAD file. |
String |
getAuthorName()
Gets the author name as set in the WAD file. |
String |
getConfigValue(String name)
Get configuration value loaded from the per-servlet configuration file. |
Set |
getConfigValueNames()
Get all configuration value names. |
long |
getCreationTime()
Get the time that the application was created. |
String |
getInitParameter(String name)
Get a servlet init parameter. |
Map |
getInitParameterMap()
Get a map of servlet init parameter names to values (This method is used by the EL variable resolver) |
String |
getServletName()
Get the name of the servlet running this application. |
String |
getVendorName()
Gets the vendor name as set in the WAD file. |
void |
removeAttribute(String name)
Remove a session scoped attribute. |
void |
setAttribute(String name,
Object value)
Set a servlet scoped attribute. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private ServletConfig servletConfig
private Properties properties
private HashMap attributes
private long creationTime
private WeaverApplication application
private Object initParamMapSync
private Map initParamMap
Constructor Detail |
public WeaverServletContextImpl(WeaverApplication application, ServletConfig servletConfig, Properties properties)
application
- Definition of the application (WAD file) this servlet is running.servletConfig
- Servlet config for this servletproperties
- Per-servlet config object for this servlet.Method Detail |
public long getCreationTime()
getCreationTime
in interface WeaverServletContext
public String getServletName()
getServletName
in interface WeaverServletContext
public WeaverApplication getApplication()
public String getApplicationName()
WeaverServletContext
getApplicationName
in interface WeaverServletContext
public String getApplicationVersion()
WeaverServletContext
getApplicationVersion
in interface WeaverServletContext
public String getApplicationDate()
WeaverServletContext
getApplicationDate
in interface WeaverServletContext
public String getAuthorEmail()
WeaverServletContext
getAuthorEmail
in interface WeaverServletContext
public String getAuthorName()
WeaverServletContext
getAuthorName
in interface WeaverServletContext
public String getVendorName()
WeaverServletContext
getVendorName
in interface WeaverServletContext
public String getInitParameter(String name)
getInitParameter
in interface WeaverServletContext
name
- The name of the init parameter to return.
public Map getInitParameterMap()
public String getConfigValue(String name)
getConfigValue
in interface WeaverServletContext
name
- Name of config value to retrieve
public Set getConfigValueNames()
getConfigValueNames
in interface WeaverServletContext
public void setAttribute(String name, Object value)
setAttribute
in interface WeaverServletContext
name
- The name of the attribute to set.value
- The value to set the attribute to.public Map getAttributeMap()
public Object getAttribute(String name)
getAttribute
in interface WeaverServletContext
name
- The name of the attribute to retrieve.
public void removeAttribute(String name)
removeAttribute
in interface WeaverServletContext
name
- The name of the attribute to remove.
|
Copyright ©Paul Harvey | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |