public class ServerConfiguration
extends java.lang.Object
implements java.io.Serializable
XML
configuration file and holds all the data in the configuration
node that the server needs for operation.Modifier and Type | Field and Description |
---|---|
java.util.Hashtable |
configCache
The default value for the configuration cache.
|
org.w3c.dom.Node |
configDOMTree
The default value for the configuration DOM tree.
|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static javax.servlet.ServletContext |
restServletContext
The default value for the rest servlet context.
|
static javax.servlet.ServletContext |
servletContext
The default value for the servlet context.
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Node |
getConfigCache(java.lang.String key)
This method returns a node with the given name.
|
java.lang.String |
getConfigFileName()
This method gets the name of the configuration file.
|
static javax.servlet.ServletContext |
getRestServletContext()
This method gets the rst servlet context.
|
static javax.servlet.ServletContext |
getServletContext()
This method gets the servlet context.
|
void |
initialize(java.lang.String filename)
This method initializes the configuration cache.
|
void |
setConfigCache(java.lang.String key,
org.w3c.dom.Node value)
This method adds the node to the cache.
|
void |
setConfigFileName(java.lang.String fileName)
This method sets the configuration file name.
|
static void |
setRestServletContext(javax.servlet.ServletContext val)
This method sets the servlet context for Rest.
|
static void |
setServletContext(javax.servlet.ServletContext val)
This method sets the servlet context.
|
static ServerConfiguration |
singleton()
This method returns a singleton instance of this class.
|
public static final java.lang.String COPYRIGHT
public org.w3c.dom.Node configDOMTree
public java.util.Hashtable configCache
public static javax.servlet.ServletContext servletContext
public static javax.servlet.ServletContext restServletContext
public org.w3c.dom.Node getConfigCache(java.lang.String key)
key
- The name of the node.Node
object with the given name.public java.lang.String getConfigFileName()
public static javax.servlet.ServletContext getServletContext()
public static javax.servlet.ServletContext getRestServletContext()
public void initialize(java.lang.String filename) throws java.lang.Exception
filename
- The configuration file name.java.lang.Exception
public void setConfigCache(java.lang.String key, org.w3c.dom.Node value)
key
- The name of the node.value
- The dom
node.public void setConfigFileName(java.lang.String fileName)
fileName
- The name of the configuration file.public static void setServletContext(javax.servlet.ServletContext val)
val
- The servlet context.public static void setRestServletContext(javax.servlet.ServletContext val)
val
- The servlet context.public static ServerConfiguration singleton()
ServerConfiguration
.