/*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/*
* Copyright 1999-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
/**
* A simple ResourceResolver for requests into the local filesystem.
*
* @author $Author: mullan $
*/
/** {@link java.util.logging} logging facility */
ResolverLocalFilesystem.class.getName());
public boolean engineIsThreadSafe() {
return true;
}
/**
* @inheritDoc
*/
throws ResourceResolverException {
try {
// if the URI contains a fragment, ignore it
return result;
} catch (Exception e) {
BaseURI);
}
}
/**
* Method translateUriToFilename
*
* @param uri
* @return the string of the filename
*/
{
int offset = 0;
int index = 0;
do
{
else
{
}
}
while(index != -1);
}
// we're running M$ Windows, so this works fine
return subStr;
}
// we're running some UNIX, so we have to prepend a slash
return "/" + subStr;
}
/**
* @inheritDoc
*/
return false;
}
return false;
}
try {
//URI uriNew = new URI(new URI(BaseURI), uri.getNodeValue());
log.log(java.util.logging.Level.FINE, "I was asked whether I can resolve " + uriNodeValue/*uriNew.toString()*/);
log.log(java.util.logging.Level.FINE, "I state that I can resolve " + uriNodeValue/*uriNew.toString()*/);
return true;
}
} catch (Exception e) {}
return false;
}
throws URI.MalformedURIException {
}
}
}