public class ServletContextHandler extends Object implements DynamicPropertyHandler
DynamicPropertyHandler
interface that provides
access to attributes of a ServletContext
.Constructor and Description |
---|
ServletContextHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
collectPropertyNames(Set set,
Object bean)
Collect the property names from bean, storing in set.
|
Object |
getProperty(Object context,
String property)
Returns the value of the specified dynamic property.
|
String[] |
getPropertyNames(Object context)
Returns a list of dynamic property names for the supplied object.
|
void |
setProperty(Object context,
String property,
Object value)
Modifies the value of the specified dynamic property.
|
public ServletContextHandler()
public String[] getPropertyNames(Object context)
DynamicPropertyHandler
getPropertyNames
in interface DynamicPropertyHandler
context
- to inspectprotected void collectPropertyNames(Set set, Object bean)
set
- destinationbean
- to readpublic Object getProperty(Object context, String property)
DynamicPropertyHandler
getProperty
in interface DynamicPropertyHandler
context
- to searchproperty
- to retrievepublic void setProperty(Object context, String property, Object value)
DynamicPropertyHandler
setProperty
in interface DynamicPropertyHandler
context
- to modifyproperty
- to modifyvalue
- to setCopyright © 2001–2015 The Apache Software Foundation. All rights reserved.