public class CommonURIResolver extends Object implements URIResolver
Service
mechanism.
This resolver will try all resolvers registered as an URIResolver
class. For proper operation, the registers URIResolvers must return null if
they cannot handle the given URI and fail fast.
Constructor and Description |
---|
CommonURIResolver()
Creates a new CommonURIResolver.
|
Modifier and Type | Method and Description |
---|---|
static CommonURIResolver |
getDefaultURIResolver()
Retrieve the default resolver instance.
|
void |
register(URIResolver uriResolver)
Register a given
URIResolver while the software is running. |
Source |
resolve(String href,
String base) |
void |
unregister(URIResolver uriResolver)
Unregister a given
URIResolver while the software is running. |
public CommonURIResolver()
getDefaultURIResolver()
public static CommonURIResolver getDefaultURIResolver()
public Source resolve(String href, String base)
resolve
in interface URIResolver
public void register(URIResolver uriResolver)
URIResolver
while the software is running.uriResolver
- the resolver to register.public void unregister(URIResolver uriResolver)
URIResolver
while the software is running.uriResolver
- the resolver to unregister.Copyright © 2023 Apache Software Foundation. All rights reserved.