|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.thetransactioncompany.util.PropertyConverter
public class PropertyConverter
Static utility methods for converting servlet and context initialisation parameters to Java properties.
| Constructor Summary | |
|---|---|
PropertyConverter()
|
|
| Method Summary | |
|---|---|
static Properties |
getServletCtxInitParameters(javax.servlet.ServletContext ctx)
Converts the servlet context initialisation parameters (typically specified in the web.xml file) to a Java properties
hashtable. |
static Properties |
getServletInitParameters(javax.servlet.ServletConfig config)
Converts the servlet initialisation parameters (typically specified in the web.xml file) to a Java properties hashtable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyConverter()
| Method Detail |
|---|
public static Properties getServletInitParameters(javax.servlet.ServletConfig config)
web.xml file) to a Java properties hashtable. The
parameter names become property keys.
Note regarding web.xml markup: The servlet initialisation
parameters have an XML tag <init-param> and are defined
within the <servlet> element.
config - The servlet configuration.
public static Properties getServletCtxInitParameters(javax.servlet.ServletContext ctx)
web.xml file) to a Java properties
hashtable. The parameter names become property keys.
Note regarding web.xml markup: The context parameters
have an XML tag <context-param> and are defined within the
<web-app> element.
ctx - The servlet context.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||