[Yanel-commits] rev 58415 - public/yanel/trunk/src/core/java/org/wyona/yanel/core/source
michi at wyona.com
michi at wyona.com
Fri May 20 15:29:50 CEST 2011
Author: michi
Date: 2011-05-20 15:29:49 +0200 (Fri, 20 May 2011)
New Revision: 58415
Modified:
public/yanel/trunk/src/core/java/org/wyona/yanel/core/source/SourceResolver.java
Log:
javadoc added
Modified: public/yanel/trunk/src/core/java/org/wyona/yanel/core/source/SourceResolver.java
===================================================================
--- public/yanel/trunk/src/core/java/org/wyona/yanel/core/source/SourceResolver.java 2011-05-20 12:33:19 UTC (rev 58414)
+++ public/yanel/trunk/src/core/java/org/wyona/yanel/core/source/SourceResolver.java 2011-05-20 13:29:49 UTC (rev 58415)
@@ -28,6 +28,9 @@
this.resolvers = new HashMap<String, URIResolver>();
}
+ /**
+ * Get source for a specific URL, e.g. 'rthtdocs:/xslt/foaf2xhtml.xsl' (whereas in this case base can be set to null)
+ */
public Source resolve(String uri, String base) throws SourceException {
if (log.isDebugEnabled()) {
log.debug("URI to be resolved: " + uri);
@@ -71,6 +74,10 @@
throw new SourceException("No resolver could be loaded for scheme: " + uriScheme);
}
+ /**
+ * Get resolver for a particular scheme, e.g. rthtdocs (htdocs directory of a resource)
+ * @param scheme Scheme/protocol
+ */
private URIResolver getResolver(String scheme) {
URIResolver resolver = null;
if (this.resolvers.containsKey(scheme)) {
@@ -99,5 +106,4 @@
}
return resolver;
}
-
}
More information about the Yanel-commits
mailing list