Class ResourceResolverSpi
- java.lang.Object
-
- org.apache.xml.security.utils.resolver.ResourceResolverSpi
-
public abstract class ResourceResolverSpi extends java.lang.Object
During reference validation, we have to retrieve resources from somewhere.- Author:
- $Author$
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Map
_properties
Field _properties
-
Constructor Summary
Constructors Constructor Description ResourceResolverSpi()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
engineAddProperies(java.util.Map properties)
abstract boolean
engineCanResolve(org.w3c.dom.Attr uri, java.lang.String BaseURI)
This method helps theResourceResolver
to decide whether aResourceResolverSpi
is able to perform the requested action.java.lang.String
engineGetProperty(java.lang.String key)
Method engineGetPropertyjava.lang.String[]
engineGetPropertyKeys()
Method engineGetPropertyKeysabstract XMLSignatureInput
engineResolve(org.w3c.dom.Attr uri, java.lang.String BaseURI)
This is the workhorse method used to resolve resources.void
engineSetProperty(java.lang.String key, java.lang.String value)
Method engineSetPropertystatic java.lang.String
fixURI(java.lang.String str)
Fixes a platform dependent filename to standard URI form.boolean
understandsProperty(java.lang.String propertyToTest)
Method understandsProperty
-
-
-
Method Detail
-
engineResolve
public abstract XMLSignatureInput engineResolve(org.w3c.dom.Attr uri, java.lang.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
public void engineSetProperty(java.lang.String key, java.lang.String value)
Method engineSetProperty- Parameters:
key
-value
-
-
engineGetProperty
public java.lang.String engineGetProperty(java.lang.String key)
Method engineGetProperty- Parameters:
key
-- Returns:
- the value of the property
-
engineAddProperies
public void engineAddProperies(java.util.Map properties)
- Parameters:
properties
-
-
engineCanResolve
public abstract boolean engineCanResolve(org.w3c.dom.Attr uri, java.lang.String BaseURI)
This method helps theResourceResolver
to decide whether aResourceResolverSpi
is able to perform the requested action.- Parameters:
uri
-BaseURI
-- Returns:
- true if the engine can resolve the uri
-
engineGetPropertyKeys
public java.lang.String[] engineGetPropertyKeys()
Method engineGetPropertyKeys- Returns:
- the property keys
-
understandsProperty
public boolean understandsProperty(java.lang.String propertyToTest)
Method understandsProperty- Parameters:
propertyToTest
-- Returns:
- true if understands the property
-
fixURI
public static java.lang.String fixURI(java.lang.String str)
Fixes a platform dependent filename to standard URI form.- Parameters:
str
- The string to fix.- Returns:
- Returns the fixed URI string.
-
-