Class ResolverFragment
- java.lang.Object
-
- org.apache.xml.security.utils.resolver.ResourceResolverSpi
-
- org.apache.xml.security.utils.resolver.implementations.ResolverFragment
-
public class ResolverFragment extends ResourceResolverSpi
This resolver is used for resolving same-document URIs like URI="" of URI="#id".
-
-
Field Summary
Fields Modifier and Type Field Description private static org.slf4j.LoggerLOG-
Fields inherited from class org.apache.xml.security.utils.resolver.ResourceResolverSpi
properties
-
-
Constructor Summary
Constructors Constructor Description ResolverFragment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanengineCanResolveURI(ResourceResolverContext context)Method engineCanResolve This method helps theResourceResolverto decide whether aResourceResolverSpiis able to perform the requested action.booleanengineIsThreadSafe()Tells if the implementation does can be reused by several threads safely.XMLSignatureInputengineResolveURI(ResourceResolverContext context)This is the workhorse method used to resolve resources.-
Methods inherited from class org.apache.xml.security.utils.resolver.ResourceResolverSpi
engineAddProperies, engineGetProperty, engineGetPropertyKeys, engineSetProperty, fixURI, understandsProperty
-
-
-
-
Method Detail
-
engineIsThreadSafe
public boolean engineIsThreadSafe()
Description copied from class:ResourceResolverSpiTells 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.- Overrides:
engineIsThreadSafein classResourceResolverSpi
-
engineResolveURI
public XMLSignatureInput engineResolveURI(ResourceResolverContext context) throws ResourceResolverException
This is the workhorse method used to resolve resources.- Specified by:
engineResolveURIin classResourceResolverSpi- Parameters:
context- Context to use to resolve resources.- Returns:
- the resource wrapped around a XMLSignatureInput
- Throws:
ResourceResolverException
-
engineCanResolveURI
public boolean engineCanResolveURI(ResourceResolverContext context)
Method engineCanResolve This method helps theResourceResolverto decide whether aResourceResolverSpiis able to perform the requested action.- Specified by:
engineCanResolveURIin classResourceResolverSpi- Parameters:
context-- Returns:
- true if the engine can resolve the uri
-
-