|
||||||||||
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.
Method Summary | |
---|---|
java.lang.Object |
clone()
|
java.lang.String |
getName()
Returns the name of the application. |
XmlNode |
getNode(java.lang.String pName)
Gets the xml node for a property name from the application configuration. |
java.util.List<XmlNode> |
getNodes(java.lang.String pName)
Gets the xml node or a list of nodes for a property name from the application configuration. |
java.util.List<java.lang.String> |
getProperties(java.lang.String pName)
Gets a list of values for a property which exists more than once. |
java.lang.String |
getProperty(java.lang.String pName,
java.lang.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, isValid, removeEncryptedNode |
Methods inherited from class com.sibvisions.rad.server.config.UpToDateConfigFile |
---|
getFile, getProperty, isCloneNodes, isFile, isSaveImmediate, isStream, isUpdateEnabled, isValid, isVirtual, prepareIncludeNodes, reload, replacePlaceholder, replacePlaceholder, save, setCloneNodes, setContent, setNode, setProperty, setSaveImmediate, update |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class UpToDateConfigFile
java.lang.CloneNotSupportedException
public java.lang.String getProperty(java.lang.String pName, java.lang.String pDefault) throws java.lang.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
java.lang.Exception
- if the configuration(s) is/are invalidpublic java.util.List<java.lang.String> getProperties(java.lang.String pName) throws java.lang.Exception
getProperties
in class UpToDateConfigFile
pName
- the property name
null
if the property is generally not available
java.lang.Exception
- if the configuration is invalidpublic java.util.List<XmlNode> getNodes(java.lang.String pName) throws java.lang.Exception
getNodes
in class UpToDateConfigFile
pName
- the property name
null
if the property is generally not available
java.lang.Exception
- if the configuration(s) is/are invalidpublic XmlNode getNode(java.lang.String pName) throws java.lang.Exception
getNode
in class UpToDateConfigFile
pName
- the property name
null
if the property is generally not available
java.lang.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 java.lang.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 |