Methods Summary |
---|
public void | addProperties(java.util.Map properties)Method addProperties
this._resolverSpi.engineAddProperies(properties);
|
private boolean | canResolve(org.w3c.dom.Attr uri, java.lang.String BaseURI)Method canResolve
return this._resolverSpi.engineCanResolve(uri, BaseURI);
|
public static final com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolver | getInstance(org.w3c.dom.Attr uri, java.lang.String BaseURI)Method getInstance
int length=ResourceResolver._resolverVector.size();
for (int i = 0; i < length; i++) {
ResourceResolver resolver =
(ResourceResolver) ResourceResolver._resolverVector.get(i);
if (true)
if (log.isLoggable(java.util.logging.Level.FINE)) log.log(java.util.logging.Level.FINE, "check resolvability by class " + resolver.getClass().getName());
if ((resolver != null) && resolver.canResolve(uri, BaseURI)) {
return resolver;
}
}
Object exArgs[] = { ((uri != null)
? uri.getNodeValue()
: "null"), BaseURI };
throw new ResourceResolverException("utils.resolver.noClass", exArgs,
uri, BaseURI);
|
public static final com.sun.org.apache.xml.internal.security.utils.resolver.ResourceResolver | getInstance(org.w3c.dom.Attr uri, java.lang.String BaseURI, java.util.List individualResolvers)Method getInstance
if (true) {
if (log.isLoggable(java.util.logging.Level.FINE)) log.log(java.util.logging.Level.FINE, "I was asked to create a ResourceResolver and got " + individualResolvers.size());
if (log.isLoggable(java.util.logging.Level.FINE)) log.log(java.util.logging.Level.FINE, " extra resolvers to my existing " + ResourceResolver._resolverVector.size() + " system-wide resolvers");
}
// first check the individual Resolvers
int size=0;
if ((individualResolvers != null) && ((size=individualResolvers.size()) > 0)) {
for (int i = 0; i < size; i++) {
ResourceResolver resolver =
(ResourceResolver) individualResolvers.get(i);
if (resolver != null) {
String currentClass = resolver._resolverSpi.getClass().getName();
if (true)
if (log.isLoggable(java.util.logging.Level.FINE)) log.log(java.util.logging.Level.FINE, "check resolvability by class " + currentClass);
if (resolver.canResolve(uri, BaseURI)) {
return resolver;
}
}
}
}
return getInstance(uri,BaseURI);
|
public java.lang.String | getProperty(java.lang.String key)Method getProperty
return this._resolverSpi.engineGetProperty(key);
|
public java.lang.String[] | getPropertyKeys()Method getPropertyKeys
return this._resolverSpi.engineGetPropertyKeys();
|
public static void | init()The init() function is called by com.sun.org.apache.xml.internal.security.Init.init()
if (!ResourceResolver._alreadyInitialized) {
ResourceResolver._resolverVector = new ArrayList(10);
_alreadyInitialized = true;
}
|
public static void | register(java.lang.String className)Method register
ResourceResolver resolver = null;
try {
resolver = new ResourceResolver(className);
ResourceResolver._resolverVector.add(resolver);
} catch (Exception e) {
// Object exArgs[] = { ((uri != null)
// ? uri.getNodeValue()
// : "null"), BaseURI };
//
// throw new ResourceResolverException("utils.resolver.noClass",
// exArgs, e, uri, BaseURI);
log.log(java.util.logging.Level.WARNING, "Error loading resolver " + className +" disabling it");
} catch (NoClassDefFoundError e) {
log.log(java.util.logging.Level.WARNING, "Error loading resolver " + className +" disabling it");
}
|
public static void | registerAtStart(java.lang.String className)Method registerAtStart
ResourceResolver._resolverVector.add(0, className);
|
public com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput | resolve(org.w3c.dom.Attr uri, java.lang.String BaseURI)Method resolve
return this._resolverSpi.engineResolve(uri, BaseURI);
|
public static com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput | resolveStatic(org.w3c.dom.Attr uri, java.lang.String BaseURI)Method resolve
ResourceResolver myResolver = ResourceResolver.getInstance(uri, BaseURI);
return myResolver.resolve(uri, BaseURI);
|
public void | setProperty(java.lang.String key, java.lang.String value)Method setProperty
this._resolverSpi.engineSetProperty(key, value);
|
public boolean | understandsProperty(java.lang.String propertyToTest)Method understandsProperty
return this._resolverSpi.understandsProperty(propertyToTest);
|