|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopendap.crawler.EMLBuilder
public class EMLBuilder
This class handles the task of getting an EML given a DDX document. It can test the returned document to see if it is well-formed and it can cache the document.
Constructor Summary | |
---|---|
EMLBuilder()
|
|
EMLBuilder(boolean useCache,
java.lang.String namePrefix,
java.lang.String xslt)
|
|
EMLBuilder(java.lang.String namePrefix)
|
|
EMLBuilder(java.lang.String namePrefix,
java.lang.String xslt)
|
Method Summary | |
---|---|
java.lang.String |
getCachedEMLDoc(java.lang.String DDXURL)
Return the EML document generated using the DDX from the given DDX URL. |
java.lang.String |
getEML(java.lang.String ddxUrl,
java.lang.String ddxString)
Build and cache an EML document using the given DDX document. |
java.lang.String |
getEML(java.lang.String ddxUrl,
java.lang.String ddxString,
java.lang.String[] params)
This version takes a varying number of parameters. |
boolean |
isWellFormedEML(java.lang.String emlString)
Simple method to test if the EML will parse. |
void |
saveEMLCache()
Save the EML cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EMLBuilder() throws java.lang.Exception
java.lang.Exception
public EMLBuilder(java.lang.String namePrefix) throws java.lang.Exception
java.lang.Exception
public EMLBuilder(java.lang.String namePrefix, java.lang.String xslt) throws java.lang.Exception
java.lang.Exception
public EMLBuilder(boolean useCache, java.lang.String namePrefix, java.lang.String xslt) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public boolean isWellFormedEML(java.lang.String emlString)
ddxString
- The EML to test
public java.lang.String getEML(java.lang.String ddxUrl, java.lang.String ddxString) throws java.lang.Exception
ddxUrl
- Use this as the key when caching the EMLddxString
- Build EML from this document
java.lang.Exception
public java.lang.String getEML(java.lang.String ddxUrl, java.lang.String ddxString, java.lang.String[] params) throws java.lang.Exception
ddxUrl
- Use this as the key when caching the EMLddxString
- Build EML from this documentparams
- Array element pairs: name1, value1, name2, value2, ...
java.lang.Exception
public java.lang.String getCachedEMLDoc(java.lang.String DDXURL) throws java.lang.Exception
DDXURL
- The DDX URL is the key used to reference the EML document.
java.lang.Exception
- Thrown if caching is not on.public void saveEMLCache() throws java.lang.Exception
java.lang.Exception
- Thrown if caching is not on.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |