public abstract class ResourceResolverSpi extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,String> |
properties
Field properties
|
protected boolean |
secureValidation
Deprecated.
Secure validation flag is now passed to methods.
|
Constructor and Description |
---|
ResourceResolverSpi() |
Modifier and Type | Method and Description |
---|---|
void |
engineAddProperies(Map<String,String> newProperties) |
boolean |
engineCanResolve(Attr uri,
String BaseURI)
Deprecated.
|
boolean |
engineCanResolveURI(ResourceResolverContext context)
This method helps the
ResourceResolver to decide whether a
ResourceResolverSpi is able to perform the requested action. |
String |
engineGetProperty(String key)
Method engineGetProperty
|
String[] |
engineGetPropertyKeys()
Method engineGetPropertyKeys
|
boolean |
engineIsThreadSafe()
Tells if the implementation does can be reused by several threads safely.
|
XMLSignatureInput |
engineResolve(Attr uri,
String BaseURI)
Deprecated.
New clients should override
engineResolveURI(ResourceResolverContext) |
XMLSignatureInput |
engineResolveURI(ResourceResolverContext context)
This is the workhorse method used to resolve resources.
|
void |
engineSetProperty(String key,
String value)
Method engineSetProperty
|
static String |
fixURI(String str)
Fixes a platform dependent filename to standard URI form.
|
boolean |
understandsProperty(String propertyToTest)
Method understandsProperty
|
protected final boolean secureValidation
public XMLSignatureInput engineResolve(Attr uri, String BaseURI) throws ResourceResolverException
engineResolveURI(ResourceResolverContext)
uri
- BaseURI
- ResourceResolverException
public XMLSignatureInput engineResolveURI(ResourceResolverContext context) throws ResourceResolverException
context
- Context to use to resolve resources.ResourceResolverException
public void engineSetProperty(String key, String value)
key
- value
- public String engineGetProperty(String key)
key
- public void engineAddProperies(Map<String,String> newProperties)
newProperties
- public boolean engineIsThreadSafe()
public boolean engineCanResolve(Attr uri, String BaseURI)
engineCanResolveURI(ResourceResolverContext)
ResourceResolver
to decide whether a
ResourceResolverSpi
is able to perform the requested action.uri
- BaseURI
- public boolean engineCanResolveURI(ResourceResolverContext context)
ResourceResolver
to decide whether a
ResourceResolverSpi
is able to perform the requested action.
New clients should override this method, and not override engineCanResolve(Attr, String)
context
- Context in which to do resolution.public String[] engineGetPropertyKeys()
public boolean understandsProperty(String propertyToTest)
propertyToTest
- Copyright © 2000–2017 The Apache Software Foundation. All rights reserved.