|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.xmlserv.main.BackendRepository
The container for all configured backends. The contents of the given InputStream are parsed and a BackendHandle is generated for each entry. URL Mapping is done by this class, Stylesheet mapping is implemented in BackendHandle
BackendHandle
Constructor Summary | |
BackendRepository(java.io.InputStream configstream)
Construct object by reading the given InputStream and parsing the <Backend> tags. |
Method Summary | |
void |
add(BackendHandle backend)
Add a BackendHandle to the repository. |
void |
destroy()
Destroy all BackendHandle objects giving them the opportunity to release any resources such as DB connections by calling their destroy() method. |
void |
dump()
Dump contents of Repository to stdout. |
BackendHandle |
get(java.lang.String url)
URL Mapping. |
java.lang.String |
getStatus()
Return a system status report as a HTML fragment. |
static void |
main(java.lang.String[] args)
Test routine. |
void |
remove(java.lang.String url)
Remove the Backend associated with the given URL. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BackendRepository(java.io.InputStream configstream) throws java.io.IOException
Method Detail |
public java.lang.String getStatus()
public void destroy()
public void add(BackendHandle backend)
backend
- The BackendHandle to add.public void remove(java.lang.String url)
url
- The URL to remove from the Repository.public BackendHandle get(java.lang.String url)
public void dump()
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |