|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.soa.esb.addressing.util.EPRManager
public class EPRManager
Allows EPRs to be saved to and loaded from files. Mainly for testing purposes. This version assumes XML as the output format.
Constructor Summary | |
---|---|
protected |
EPRManager(java.lang.String domain)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object manager)
|
java.lang.String |
getDomain()
|
static EPRManager |
getInstance()
All EPRs are saves in files within the current working directory. |
static EPRManager |
getInstance(java.lang.String domain)
All EPRs are saves in files within a defined directory. |
EPR |
loadEPR(java.lang.String name)
Get the EPR specified by the logical name. |
void |
removeEPR(java.lang.String name)
Remove the EPR-to-file association. |
void |
saveEPR(java.lang.String name,
EPR address)
Save the EPR into the specified file. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected EPRManager(java.lang.String domain)
Method Detail |
---|
public static final EPRManager getInstance()
public static final EPRManager getInstance(java.lang.String domain)
domain
- the name of the directory. If null
then the
null String is assumed.
public final java.lang.String getDomain()
public boolean equals(java.lang.Object manager)
equals
in class java.lang.Object
public final void saveEPR(java.lang.String name, EPR address) throws java.io.IOException
name
- the name of the file to use (the logical service name).address
- the EPR to save.
java.io.IOException
- thrown if there is an error.public final void removeEPR(java.lang.String name) throws java.io.IOException
name
- the logical name for the service.
java.io.IOException
- thrown if there are any errors.public final EPR loadEPR(java.lang.String name) throws java.io.IOException
name
- the service name.
null
if none exists.
java.io.IOException
- thrown if there is an error.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |