|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.fudgemsg.taxon.URLTaxonomyResolver
public abstract class URLTaxonomyResolver
A taxonomy resolver that retrieves a taxonomy from a URL.
A concrete implementation must specify how the URL is constructed. This resolver will cache the taxonomy objects.
Constructor Summary | |
---|---|
protected |
URLTaxonomyResolver()
Creates a new resolver. |
Method Summary | |
---|---|
protected abstract URL |
createTaxonomyURL(short taxonomyId)
Returns the URL that the taxonomy corresponding to the ID should be loaded from. |
void |
reset()
Clears the resolver cache. |
FudgeTaxonomy |
resolveTaxonomy(short taxonomyId)
Looks up the taxonomy by ID. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected URLTaxonomyResolver()
Method Detail |
---|
public FudgeTaxonomy resolveTaxonomy(short taxonomyId)
TaxonomyResolver
resolveTaxonomy
in interface TaxonomyResolver
taxonomyId
- the ID of the taxonomy to look up
protected abstract URL createTaxonomyURL(short taxonomyId) throws MalformedURLException
taxonomyId
- the taxonomy ID to locate
MalformedURLException
- if there is a problem creating the URL, this will be wrapped into a runtime exceptionpublic void reset()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |