Methods Summary |
---|
public void | engineAddProperies(java.util.Map properties)
this._properties.putAll(properties);
|
public abstract boolean | engineCanResolve(org.w3c.dom.Attr uri, java.lang.String BaseURI)This method helps the {@link ResourceResolver} to decide whether a
{@link ResourceResolverSpi} is able to perform the requested action.
|
public java.lang.String | engineGetProperty(java.lang.String key)Method engineGetProperty
java.util.Iterator i = this._properties.keySet().iterator();
while (i.hasNext()) {
String c = (String) i.next();
if (c.equals(key)) {
key = c;
break;
}
}
return (String) this._properties.get(key);
|
public java.lang.String[] | engineGetPropertyKeys()Method engineGetPropertyKeys
return new String[0];
|
public abstract com.sun.org.apache.xml.internal.security.signature.XMLSignatureInput | engineResolve(org.w3c.dom.Attr uri, java.lang.String BaseURI)This is the workhorse method used to resolve resources.
|
public void | engineSetProperty(java.lang.String key, java.lang.String value)Method engineSetProperty
java.util.Iterator i = this._properties.keySet().iterator();
while (i.hasNext()) {
String c = (String) i.next();
if (c.equals(key)) {
key = c;
break;
}
}
this._properties.put(key, value);
|
public static java.lang.String | fixURI(java.lang.String str)Fixes a platform dependent filename to standard URI form.
// handle platform dependent strings
str = str.replace(java.io.File.separatorChar, '/");
if (str.length() >= 4) {
// str =~ /^\W:\/([^/])/ # to speak perl ;-))
char ch0 = Character.toUpperCase(str.charAt(0));
char ch1 = str.charAt(1);
char ch2 = str.charAt(2);
char ch3 = str.charAt(3);
boolean isDosFilename = ((('A" <= ch0) && (ch0 <= 'Z"))
&& (ch1 == ':") && (ch2 == '/")
&& (ch3 != '/"));
if (isDosFilename) {
if (true)
if (log.isLoggable(java.util.logging.Level.FINE)) log.log(java.util.logging.Level.FINE, "Found DOS filename: " + str);
}
}
// Windows fix
if (str.length() >= 2) {
char ch1 = str.charAt(1);
if (ch1 == ':") {
char ch0 = Character.toUpperCase(str.charAt(0));
if (('A" <= ch0) && (ch0 <= 'Z")) {
str = "/" + str;
}
}
}
// done
return str;
|
public boolean | understandsProperty(java.lang.String propertyToTest)Method understandsProperty
String[] understood = this.engineGetPropertyKeys();
if (understood != null) {
for (int i = 0; i < understood.length; i++) {
if (understood[i].equals(propertyToTest)) {
return true;
}
}
}
return false;
|