Class ResourceResolverSpi
java.lang.Object
org.apache.xml.security.utils.resolver.ResourceResolverSpi
During reference validation, we have to retrieve resources from somewhere.
- Author:
- $Author$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidengineAddProperies(Map properties) abstract booleanengineCanResolve(Attr uri, String BaseURI) This method helps theResourceResolverto decide whether aResourceResolverSpiis able to perform the requested action.engineGetProperty(String key) Method engineGetPropertyString[]Method engineGetPropertyKeysabstract XMLSignatureInputengineResolve(Attr uri, String BaseURI) This is the workhorse method used to resolve resources.voidengineSetProperty(String key, String value) Method engineSetPropertystatic StringFixes a platform dependent filename to standard URI form.booleanunderstandsProperty(String propertyToTest) Method understandsProperty
-
Field Details
-
_properties
Field _properties
-
-
Constructor Details
-
ResourceResolverSpi
public ResourceResolverSpi()
-
-
Method Details
-
engineResolve
public abstract XMLSignatureInput engineResolve(Attr uri, String BaseURI) throws ResourceResolverException This is the workhorse method used to resolve resources.- Parameters:
uri-BaseURI-- Returns:
- the resource wrapped arround a XMLSignatureInput
- Throws:
ResourceResolverException
-
engineSetProperty
Method engineSetProperty- Parameters:
key-value-
-
engineGetProperty
Method engineGetProperty- Parameters:
key-- Returns:
- the value of the property
-
engineAddProperies
- Parameters:
properties-
-
engineCanResolve
This method helps theResourceResolverto decide whether aResourceResolverSpiis able to perform the requested action.- Parameters:
uri-BaseURI-- Returns:
- true if the engine can resolve the uri
-
engineGetPropertyKeys
Method engineGetPropertyKeys- Returns:
- the property keys
-
understandsProperty
Method understandsProperty- Parameters:
propertyToTest-- Returns:
- true if understands the property
-
fixURI
Fixes a platform dependent filename to standard URI form.- Parameters:
str- The string to fix.- Returns:
- Returns the fixed URI string.
-