|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.rad.server.config.UpToDateConfigFile
com.sibvisions.rad.server.config.Zone
com.sibvisions.rad.server.config.ApplicationZone
public final class ApplicationZone
The ApplicationZone
class encapsulates the access
to an application configuration.
Constructor Summary | |
---|---|
ApplicationZone(String pApplicationName)
Creates a new instance of ApplicationZone for an application. |
Method Summary | |
---|---|
Object |
clone()
|
String |
getName()
Returns the name of the application. |
XmlNode |
getNode(String pName)
Gets the xml node for a property name from the application configuration. |
List<XmlNode> |
getNodes(String pName)
Gets the xml node or a list of nodes for a property name from the application configuration. |
List<String> |
getProperties(String pName)
Gets a list of values for a property which exists more than once. |
String |
getProperty(String pName,
String pDefault)
Gets the value of a property from the application configuration file. |
ServerZone |
getServerZone()
Gets the current server zone. |
void |
setUpdateEnabled(boolean pEnabled)
Sets whether this application zone should be up-to-date. |
Methods inherited from class com.sibvisions.rad.server.config.Zone |
---|
addEncryptedNode, createXmlWorker, getConfig, getDirectory, isValid, removeEncryptedNode |
Methods inherited from class com.sibvisions.rad.server.config.UpToDateConfigFile |
---|
getFile, getProperty, isSaveImmediate, isUpdateEnabled, isValid, reload, save, setContent, setNode, setProperty, setSaveImmediate, update |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ApplicationZone(String pApplicationName) throws Exception
ApplicationZone
for an application.
The application configuration will be used from the cached zone. The cache
for all zones is the Configuration
.
pApplicationName
- the name of the application
Exception
- if the configuration is invalidMethod Detail |
---|
public Object clone() throws CloneNotSupportedException
clone
in class UpToDateConfigFile
CloneNotSupportedException
public String getProperty(String pName, String pDefault) throws Exception
getProperty
in class UpToDateConfigFile
pName
- the property name (e.g /application/securitymanager/class)pDefault
- the default value if the property is not available in the application and
server configuration
pDefault
if the property is generally
not available
Exception
- if the configuration(s) is/are invalidpublic List<String> getProperties(String pName) throws Exception
getProperties
in class UpToDateConfigFile
pName
- the property name
null
if the property is generally not available
Exception
- if the configuration is invalidpublic List<XmlNode> getNodes(String pName) throws Exception
getNodes
in class UpToDateConfigFile
pName
- the property name
null
if the property is generally not available
Exception
- if the configuration(s) is/are invalidpublic XmlNode getNode(String pName) throws Exception
getNode
in class UpToDateConfigFile
pName
- the property name
null
if the property is generally not available
Exception
- if the configuration(s) is/are invalidpublic void setUpdateEnabled(boolean pEnabled)
setUpdateEnabled
in class UpToDateConfigFile
pEnabled
- true
to disable up-to-date configuration properties. This disables
the up-to-date option of the server zone too (@see getServerZone()
.public String getName()
public ServerZone getServerZone()
null
if the zone has errorsServerZone
,
setUpdateEnabled(boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |