APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xml.internal.security.utils.resolver

public Class ResourceResolver

extends Object
Class Inheritance
Imports
java.lang.reflect.InvocationTargetException, java.util.ArrayList, .List, java.util.concurrent.CopyOnWriteArrayList, java.util.concurrent.atomic.AtomicBoolean, com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput, com.sun.org.apache.xml.internal.security.utils.JavaUtils, com.sun.org.apache.xml.internal.security.utils.resolver.implementations.ResolverDirectHTTP, .ResolverFragment, .ResolverLocalFilesystem, .ResolverXPointer

During reference validation, we have to retrieve resources from somewhere. This is done by retrieving a Resolver. The resolver needs two arguments: The URI in which the link to the new resource is defined and the baseURI of the file/entity in which the URI occurs (the baseURI is the same as the SystemId).

Field Summary

Modifier and TypeField and Description
private static final AtomicBoolean
private static final Logger
private static final List<ResourceResolverSpi>
resolverList

these are the system-wide resolvers

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
register(String
the name of the ResourceResolverSpi class to be registered
className
)

Registers a ResourceResolverSpi class.

public static void
register(ResourceResolverSpi resourceResolverSpi, boolean start)

Registers a ResourceResolverSpi instance.

public static void
registerAtStart(String
the name of the ResourceResolverSpi class to be registered
className
)

Registers a ResourceResolverSpi class at the beginning of the provider list.

public static void
registerClassNames(List<String> classNames)

Registers a list of ResourceResolverSpi classes.

public static void
registerDefaultResolvers()

This method registers the default resolvers.

public static XMLSignatureInput

Returns:

the resource
resolve
(ResourceResolverContext context)

Method resolve

public static XMLSignatureInput

Returns:

the resource
resolve
(List<ResourceResolverSpi> individualResolvers, ResourceResolverContext context)

Method resolve

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

defaultResolversAddedback to summary
private static final AtomicBoolean defaultResolversAdded
LOGback to summary
private static final Logger LOG
resolverListback to summary
private static final List<ResourceResolverSpi> resolverList

these are the system-wide resolvers

Constructor Detail

ResourceResolverback to summary
public ResourceResolver()

Method Detail

registerback to summary
public static void register(String className) throws ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException

Registers a ResourceResolverSpi class.

Parameters
className:String

the name of the ResourceResolverSpi class to be registered

Annotations
@SuppressWarnings:unchecked
Exceptions
SecurityException:
if a security manager is installed and the caller does not have permission to register a resource resolver
registerback to summary
public static void register(ResourceResolverSpi resourceResolverSpi, boolean start)

Registers a ResourceResolverSpi instance.

Exceptions
SecurityException:
if a security manager is installed and the caller does not have permission to register a resource resolver
registerAtStartback to summary
public static void registerAtStart(String className) throws ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException

Registers a ResourceResolverSpi class at the beginning of the provider list.

Parameters
className:String

the name of the ResourceResolverSpi class to be registered

Annotations
@SuppressWarnings:unchecked
Exceptions
SecurityException:
if a security manager is installed and the caller does not have permission to register a resource resolver
registerClassNamesback to summary
public static void registerClassNames(List<String> classNames) throws ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException

Registers a list of ResourceResolverSpi classes.

Exceptions
SecurityException:
if a security manager is installed and the caller does not have permission to register the key resolver
registerDefaultResolversback to summary
public static void registerDefaultResolvers()

This method registers the default resolvers.

resolveback to summary
public static XMLSignatureInput resolve(ResourceResolverContext context) throws ResourceResolverException

Method resolve

Returns:XMLSignatureInput

the resource

resolveback to summary
public static XMLSignatureInput resolve(List<ResourceResolverSpi> individualResolvers, ResourceResolverContext context) throws ResourceResolverException

Method resolve

Returns:XMLSignatureInput

the resource