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

public abstract Class ResourceResolverSpi

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.org.apache.xml.internal.security.utils.resolver.implementations.ResolverAnonymous, com.sun.org.apache.xml.internal.security.utils.resolver.implementations.ResolverDirectHTTP, com.sun.org.apache.xml.internal.security.utils.resolver.implementations.ResolverFragment, com.sun.org.apache.xml.internal.security.utils.resolver.implementations.ResolverLocalFilesystem, com.sun.org.apache.xml.internal.security.utils.resolver.implementations.ResolverXPointer
Imports
com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput

During reference validation, we have to retrieve resources from somewhere. Extensions of this class must be thread-safe.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract boolean

Returns:

true if the engine can resolve the uri
engineCanResolveURI
(ResourceResolverContext
Context in which to do resolution.
context
)

This method helps the ResourceResolver to decide whether a ResourceResolverSpi is able to perform the requested action.

public abstract XMLSignatureInput

Returns:

the resource wrapped around a XMLSignatureInput
engineResolveURI
(ResourceResolverContext
Context to use to resolve resources.
context
)

This is the workhorse method used to resolve resources.

protected static final String

Returns:

the scheme, or null if none
scheme
(String
the URI
uri
)

Returns the scheme for a URI.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ResourceResolverSpiback to summary
public ResourceResolverSpi()

Method Detail

engineCanResolveURIback to summary
public abstract boolean engineCanResolveURI(ResourceResolverContext context)

This method helps the ResourceResolver to decide whether a ResourceResolverSpi is able to perform the requested action.

Parameters
context:ResourceResolverContext

Context in which to do resolution.

Returns:boolean

true if the engine can resolve the uri

engineResolveURIback to summary
public abstract XMLSignatureInput engineResolveURI(ResourceResolverContext context) throws ResourceResolverException

This is the workhorse method used to resolve resources.

Parameters
context:ResourceResolverContext

Context to use to resolve resources.

Returns:XMLSignatureInput

the resource wrapped around a XMLSignatureInput

schemeback to summary
protected static final String scheme(String uri)

Returns the scheme for a URI.

Parameters
uri:String

the URI

Returns:String

the scheme, or null if none