|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.util.Configuration
Nested Class Summary | |
static class |
Configuration.SystemTaskConfig
|
Constructor Summary | |
Configuration()
|
|
Configuration(java.lang.String configFilename)
|
|
Configuration(java.lang.String configFilename,
java.lang.String existHomeDirname)
|
Method Summary | |
void |
error(org.xml.sax.SAXParseException exception)
|
void |
fatalError(org.xml.sax.SAXParseException exception)
|
static java.io.File |
getExistHome()
Returns a file handle for eXist's home directory. |
static java.io.File |
getExistHome(java.lang.String path)
Returns a file handle for eXist's home directory. |
int |
getInteger(java.lang.String name)
|
static java.lang.String |
getPath()
Returns the absolute path to the configuration file. |
java.lang.Object |
getProperty(java.lang.String name)
|
static java.io.File |
getWebappHome()
Get folder in which the exist webapplications are found. |
boolean |
hasProperty(java.lang.String name)
|
static boolean |
isInWarFile()
Check wether exist runs in Servlet container (as war file). |
static java.io.File |
lookup(java.lang.String path)
Returns a file handle for the given path, while path specifies
the path to an eXist configuration file or directory. |
static java.io.File |
lookup(java.lang.String path,
java.lang.String parent)
Returns a file handle for the given path, while path specifies
the path to an eXist configuration file or directory. |
void |
setProperty(java.lang.String name,
java.lang.Object obj)
|
void |
warning(org.xml.sax.SAXParseException exception)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Configuration() throws DatabaseConfigurationException
public Configuration(java.lang.String configFilename) throws DatabaseConfigurationException
public Configuration(java.lang.String configFilename, java.lang.String existHomeDirname) throws DatabaseConfigurationException
Method Detail |
public java.lang.Object getProperty(java.lang.String name)
public boolean hasProperty(java.lang.String name)
public void setProperty(java.lang.String name, java.lang.Object obj)
public int getInteger(java.lang.String name)
public static java.lang.String getPath()
public static java.io.File lookup(java.lang.String path)
path
specifies
the path to an eXist configuration file or directory.
exist.home
or the current working directory, in case exist.home
was not set.
path
- the file path
public static java.io.File lookup(java.lang.String path, java.lang.String parent)
path
specifies
the path to an eXist configuration file or directory.
parent
is null, then relative paths are being interpreted
relative to exist.home
or the current working directory, in
case exist.home
was not set.
path
- path to the file or directoryparent
- parent directory used to lookup path
public static java.io.File getExistHome()
If either none of the directories identified by the system properties
exist.home
and user.home
exist or none of
them contain a configuration file, this method returns null
.
null
public static java.io.File getExistHome(java.lang.String path)
path
- path to eXist home directory
null
public static boolean isInWarFile()
public static java.io.File getWebappHome()
public void error(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
error
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void fatalError(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
fatalError
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
public void warning(org.xml.sax.SAXParseException exception) throws org.xml.sax.SAXException
warning
in interface org.xml.sax.ErrorHandler
org.xml.sax.SAXException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |