|
||||||||||
| 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 | |
|---|---|
String |
getName()
Returns the name of the application. |
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. |
| Methods inherited from class com.sibvisions.rad.server.config.Zone |
|---|
getConfig, getDirectory, setUpdateEnabled, update |
| Methods inherited from class com.sibvisions.rad.server.config.UpToDateConfigFile |
|---|
getContent, getFile, getProperty, isValid, setContent |
| Methods inherited from class java.lang.Object |
|---|
clone, 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 invalid| Method Detail |
|---|
public String getProperty(String pName,
String pDefault)
throws Exception
getProperty in class UpToDateConfigFilepName - 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 invalid
public List<String> getProperties(String pName)
throws Exception
getProperties in class UpToDateConfigFilepName - the property name
null
if the property is generally not available
Exception - if the configuration is invalid
public List<XmlNode> getNodes(String pName)
throws Exception
getNodes in class UpToDateConfigFilepName - the property name
null
if the property is generally not available
Exception - if the configuration(s) is/are invalidpublic String getName()
public ServerZone getServerZone()
null if the zone has errorsServerZone
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||