|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.dpml.transit.Transit
public final class Transit
The Transit class manages the establishment of a singleton transit instance. The implementation establishes an internal cache management system, a suite of protocol handlers, and a dynamic content handler service. During initialization Transit will load an XML configuration descibing the available remote hosts. The XML file will be resolved using the following strategy:
| Field Summary | |
|---|---|
static File |
DATA
The Transit personal data directory. |
static File |
HOME
The DPML home directory established via assesment of the the ${dpml.home} system property and the DPML_HOME environment variable. |
static File |
PREFS
The Transit personal preferences directory. |
static File |
SYSTEM
If a system property named "dpml.system" is defined then the value is assigned otherwise the implementation will look for an environment variable DPML_SYSTEM. |
static String |
VERSION
The Transit system version. |
| Method Summary | |
|---|---|
void |
addMonitor(Monitor monitor)
Add a monitor to Transit. |
File |
getCacheDirectory()
Return the current cache directory. |
Layout |
getCacheLayout()
Return the cache layout. |
ContentHandler |
getContentHandler(String type)
Return the content handler fo the supplied content type. |
static Transit |
getInstance()
Returns the singleton instance of the transit system. |
LinkManager |
getLinkManager()
Return the link manager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final File HOME
public static final File SYSTEM
public static final File DATA
public static final File PREFS
public static final String VERSION
| Method Detail |
|---|
public static Transit getInstance()
throws TransitError
TransitError - if an error occurs during establishmentpublic File getCacheDirectory()
public LinkManager getLinkManager()
public Layout getCacheLayout()
public void addMonitor(Monitor monitor)
monitor - the monitor to addpublic ContentHandler getContentHandler(String type)
type - the content handler type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||