com.ibm.portal.resolver.xml
Interface URLResolver
- All Superinterfaces:
- javax.xml.transform.URIResolver
- All Known Subinterfaces:
- ResolverContentHandler, ResolverXMLFilter
-
public interface URLResolver
- extends javax.xml.transform.URIResolver
Resolves (relative) URL references into absolute URLs.
- Since:
- 6.0.1
- See Also:
- ResolverXMLFilter
Method Summary
|
java.net.URL |
getBaseURL()
Return the current base URL |
java.net.URL |
resolve(java.lang.String href)
Resolves a (relative) URL reference into a full URL. |
void |
setBaseURL(java.net.URL aURL)
sets the base URL for the resolution process |
Methods inherited from interface javax.xml.transform.URIResolver
|
resolve |
resolve
java.net.URL resolve(java.lang.String href)
throws java.net.MalformedURLException
- Resolves a (relative) URL reference into a full URL. Implementors can e.g. consider
to take the xml:base tage into account when doing this resolution
- Parameters:
- href - URL reference (potentially relative) that needs to be resolved
to an absolute URL
- Returns:
- the absolute URL that corresponds to the input parameter
- Throws:
- java.net.MalformedURLException - - if there was a syntax error constucting the URL
getBaseURL
java.net.URL getBaseURL()
- Returns the current base URL
- Returns:
- base URL, not null
setBaseURL
void setBaseURL(java.net.URL aURL)
- sets the base URL for the resolution process
- Parameters:
- aURL - URL to be used as the new base URL for subsequent resolution steps, not null