|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface XMLResource.URIHandler
An interface for a URI handler that is used to resolve
and deresolve
URIs.
Before being used by either load or save, setBaseURI(URI)
will be called with the URI of the resource being loaded or saved.
During load, resolve(URI)
is called to resolve each URI against the URI of the containing resource;
this provides an opportunity to turn relative URIs into absolute URIs.
During save, deresolve(URI)
is called to resolve each URI against the URI of the containing resource;
this provide an opportunity to turn absolute URIs into relative URIs
It should be the case that uriHandler.resolve(uriHandler.deresolve(uri)).equals(uri)
,
i.e., resolving the deresolved URI should yield the original URI.
URIHandlerImpl
Method Summary | |
---|---|
URI |
deresolve(URI uri)
Returns the URI deresolved against the base URI. |
URI |
resolve(URI uri)
Returns the URI resolved against the base URI. |
void |
setBaseURI(URI uri)
Sets base URI used by the handler. |
Method Detail |
---|
void setBaseURI(URI uri)
uri
- the new base URI.URI resolve(URI uri)
resolved
against the base URI.
uri
- the URI to resolve.
URI.resolve(URI)
URI deresolve(URI uri)
deresolved
against the base URI.
uri
- the URI to resolve.
URI.deresolve(URI)
|
Copyright 2001-2012 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |