Class ResourceResolverSpi
java.lang.Object
org.apache.xml.security.utils.resolver.ResourceResolverSpi
- Direct Known Subclasses:
ResolverAnonymous, ResolverDirectHTTP, ResolverFragment, ResolverLocalFilesystem, ResolverXPointer
During reference validation, we have to retrieve resources from somewhere.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.LoggerField properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidengineAddProperies(Map<String, String> newProperties) abstract booleanThis method helps theResourceResolverto decide whether aResourceResolverSpiis able to perform the requested action.engineGetProperty(String key) Method engineGetPropertyString[]Method engineGetPropertyKeysbooleanTells if the implementation does can be reused by several threads safely.abstract XMLSignatureInputengineResolveURI(ResourceResolverContext context) 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
-
LOG
private static final org.slf4j.Logger LOG -
properties
-
-
Constructor Details
-
ResourceResolverSpi
public ResourceResolverSpi()
-
-
Method Details
-
engineResolveURI
public abstract XMLSignatureInput engineResolveURI(ResourceResolverContext context) throws ResourceResolverException This is the workhorse method used to resolve resources.- Parameters:
context- Context to use to resolve resources.- Returns:
- the resource wrapped around a XMLSignatureInput
- Throws:
ResourceResolverException
-
engineSetProperty
-
engineGetProperty
-
engineAddProperies
-
engineIsThreadSafe
public boolean engineIsThreadSafe()Tells if the implementation does can be reused by several threads safely. It normally means that the implementation does not have any member, or there is member change between engineCanResolve and engineResolve invocations. Or it maintains all member info in ThreadLocal methods. -
engineCanResolveURI
This method helps theResourceResolverto decide whether aResourceResolverSpiis able to perform the requested action.- Parameters:
context- Context in which to do resolution.- Returns:
- true if the engine can resolve the uri
-
engineGetPropertyKeys
-
understandsProperty
Method understandsProperty- Parameters:
propertyToTest-- Returns:
- true if understands the property
-
fixURI
-