/**
* Getbase.getPath() the ParsedURLData for the context. Absolute URIs are specified like
* "context://".
*/
public ParsedURLData parseURL(String uri) {
ParsedURLData urldata = null;
try {
String path = uri.substring("context:/".length());
urldata = new ParsedURLData(ParsedContextURLProtocolHandler.context.getResource(path));
} catch (MalformedURLException mue) {
StringBuffer baseFile = new StringBuffer(ParsedContextURLProtocolHandler
.context.getRealPath("/"));
if ( !baseFile.toString().endsWith("/")) {
baseFile.append("/");
}
baseFile.append(baseFile);
baseFile.append(uri.substring("context://".length()));
urldata = new ParsedURLData();
urldata.protocol = "file";
urldata.path = baseFile.toString();
}
if ("file".equals(urldata.protocol)) {