|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.c5corp.c5utm.C5UTMconfs
public class C5UTMconfs
public class C5UTMconfs
C5UTMconfs.java - part of the C5 Landscape database (otherwise known as the C5UTM database).
C5UTMconfs.java reads C5UTM preferences from two files:
conf/c5utm.conf
- datum and units for the data in the db
/conf/database.conf
The location of these files can be specified using the
constructor taking a single String (path) argument.
- jdbc stuff and db passwords
The results are available via pubic accessor functions
This class also validates the configuration to the degree it can.
Constructor Summary | |
---|---|
C5UTMconfs()
This constructor opens and parses the files and loads the private vars |
|
C5UTMconfs(java.lang.String path)
This constructor opens and parses the files and loads the private vars. |
Method Summary | |
---|---|
boolean |
databaseUnitsConfigured()
Returns a boolean, true if the database units are configured. |
boolean |
databaseWorking()
Returns a boolean, true if the configuration file validates and the DB is working. |
java.lang.String |
getAccessPassword()
Returns a java.lang.String containing the configured access password for this C5UTM database installation. |
java.lang.String |
getBaseUrl()
Returns a java.lang.String containing the configured base url for this C5UTM database installation. |
java.lang.String |
getCorpsconDir()
Returns a java.lang.String containing the configured CORPSCON directory for this C5UTM database installation. |
java.io.File |
getCorpsconDirFile()
Returns a java.io.File containing the configured CORPSCON directory for this C5UTM database installation. |
java.lang.String |
getDbUrl()
Returns a java.lang.String containing the configured database url for this C5UTM database installation. |
java.lang.String |
getDemDir()
Returns a java.lang.String containing the configured DEM directory, (the location of dems already processed into the database), for this C5UTM database installation. |
java.io.File |
getDemDirFile()
Returns a java.io.File containing the configured DEM directory, (the location of dems already processed into the database), for this C5UTM database installation. |
java.lang.String |
getDriver()
Returns a java.lang.String containing the configured database driver for this C5UTM database installation. |
java.lang.String |
getHorizontalDatum()
Returns a java.lang.String containing the configured horizontal datum for this C5UTM database installation. |
java.lang.String |
getHorizontalUnits()
Returns a java.lang.String containing the configured horizontal units for this C5UTM database installation. |
java.lang.String |
getImageCacheDir()
Returns a java.lang.String containing the configured web image cache directory for this C5UTM database installation. |
java.lang.String |
getMessages()
Returns a java.lang.String, containing any diagnostic messages related to datbase configuration and validation. |
java.lang.String |
getNewDemsDir()
Returns a java.lang.String containing the configured NEW_DEMS directory, (the location of dems waiting to be processed into the database), for this C5UTM database installation. |
java.io.File |
getNewDemsDirFile()
Returns a java.io.File containing the configured NEW_DEMS directory, (the location of dems waiting to be processed into the database), for this C5UTM database installation. |
java.lang.String |
getPublicHtml()
Returns a java.lang.String containing the configured web directory for this C5UTM database installation. |
java.lang.String |
getReceiptsDir()
Returns a java.lang.String containing the configured RECEIPTS directory for this C5UTM database installation. |
java.io.File |
getReceiptsDirFile()
Returns a java.io.File containing the configured RECEIPTS directory for this C5UTM database installation. |
java.lang.String |
getUpdatePassword()
Returns a java.lang.String containing the configured update password for this C5UTM database installation. |
java.lang.String |
getUTMImageDir()
Returns a java.lang.String containing the configured web image directory for this C5UTM database installation. |
java.io.File |
getUTMImageDirFile()
Returns a java.io.File containing the configured web image directory for this C5UTM database installation. |
java.lang.String |
getVerticalDatum()
Returns a java.lang.String containing the configured vertical datum for this C5UTM database installation. |
java.lang.String |
getVerticalUnits()
Returns a java.lang.String containing the configured vertical units for this C5UTM database installation. |
java.lang.String |
getWebImageDir()
deprecated Returns a java.lang.String containing the configured web image directory for this C5UTM database installation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public C5UTMconfs()
public C5UTMconfs(java.lang.String path)
path
- representing the path to the conf directory and the base instalation
must be called with a path to the directory containing the conf filesMethod Detail |
---|
public java.lang.String getVerticalDatum()
public java.lang.String getHorizontalDatum()
public java.lang.String getVerticalUnits()
public java.lang.String getHorizontalUnits()
public java.lang.String getCorpsconDir()
public java.lang.String getDemDir()
public java.lang.String getReceiptsDir()
public java.lang.String getNewDemsDir()
public java.lang.String getPublicHtml()
public java.lang.String getWebImageDir()
public java.lang.String getUTMImageDir()
public java.lang.String getImageCacheDir()
public java.io.File getCorpsconDirFile()
File
public java.io.File getDemDirFile()
public java.io.File getReceiptsDirFile()
public java.io.File getNewDemsDirFile()
public java.io.File getUTMImageDirFile()
public java.lang.String getBaseUrl()
public java.lang.String getDbUrl()
Connection
public java.lang.String getDriver()
Connection
public java.lang.String getAccessPassword()
Connection
public java.lang.String getUpdatePassword()
Connection
public boolean databaseWorking()
public boolean databaseUnitsConfigured()
public java.lang.String getMessages()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |