|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfc.util.PropertyMgr
fc.web.servlet.ServletPropertyMgr
public class ServletPropertyMgr
Loads properties for a servlet. Intended to be used in application/context scope by all servlets belonging to one web context/application.
ThreadSafety: This class is thread safe and can be used by multiple threads concurrently.
Constructor Summary | |
---|---|
ServletPropertyMgr(javax.servlet.ServletContext context)
|
Method Summary | |
---|---|
java.lang.String |
get(java.lang.String name)
Returns the property associated with the specified key or null if the property was not found. |
void |
save()
Saves any properties that were set previously. |
java.lang.String |
set(java.lang.String name,
java.lang.String backup)
Sets the property associated with the specified key. |
Methods inherited from class fc.util.PropertyMgr |
---|
get, getBoolean, getInt, getRequired, getRequiredBoolean, getRequiredInt, setUsage |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServletPropertyMgr(javax.servlet.ServletContext context) throws java.io.IOException
context
- the ServletContext
to load init parameters from.
java.io.IOException
Method Detail |
---|
public java.lang.String get(java.lang.String name)
PropertyMgr
get
in class PropertyMgr
name
- the property keypublic void save()
PropertyMgr
save
in class PropertyMgr
public java.lang.String set(java.lang.String name, java.lang.String backup)
PropertyMgr
set
in class PropertyMgr
name
- the property keybackup
- the property value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |