|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.workflow.portlet.client.Config
This class provides access to the settings in the servlet configuration file.
See the CommandHandlerAdapter
sample for how to use this class to access settings for custom handlers or
viewers.
Method Summary | |
---|---|
ApplicationContext |
getContext()
Query the application context. |
java.lang.String |
getFilename()
Query the name of the configuration file. |
java.lang.String |
getParameter(java.lang.String section,
java.lang.String key)
Query the value of a String parameter in the servlet configuration file. |
boolean |
getParameter(java.lang.String section,
java.lang.String key,
boolean defaultValue)
Query the value of a boolean parameter in the servlet configuration file. |
java.lang.String |
getParameter(java.lang.String section,
java.lang.String key,
java.lang.String defaultValue)
Query the value of a String parameter in the servlet configuration file. |
java.util.Hashtable |
getParameters(java.lang.String section)
Query all keys in a given section of the servlet configuration file. |
java.util.Hashtable |
getSections()
Query all sections in the servlet configuration file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.lang.String getFilename()
public ApplicationContext getContext()
public java.util.Hashtable getSections()
null
if the configuration file is emptypublic java.util.Hashtable getParameters(java.lang.String section)
section
- the name of the sectionsection
or
null
if there is no such sectionpublic java.lang.String getParameter(java.lang.String section, java.lang.String key)
section
- the name of the section to look inkey
- the name of the parameter to look upkey
or null
if there
is no such parameterpublic java.lang.String getParameter(java.lang.String section, java.lang.String key, java.lang.String defaultValue)
section
- the name of the section to look inkey
- the name of the parameter to look updefaultValue
- the value to return if key
does not existkey
or defaultValue
if there
is no such parameterpublic boolean getParameter(java.lang.String section, java.lang.String key, boolean defaultValue)
section
- the name of the section to look inkey
- the name of the parameter to look updefaultValue
- the value to return if key
does not existkey
(see java.lang.Boolean.valueOf()
) or
defaultValue
if there is no such parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |