public class FileResolver extends UriMappingResolver
UriMappingResolver.Resolver| Constructor and Description |
|---|
FileResolver() |
FileResolver(File base) |
FileResolver(File base,
File check) |
FileResolver(File base,
String check) |
FileResolver(Path base,
Path check) |
FileResolver(String base) |
| Modifier and Type | Method and Description |
|---|---|
protected RResponse |
get(RRequest request,
String source)
Returns a resource for the requested uri, or
null if it could
not be found. |
UriMappingResolver |
lookupAll()
Adds a rule to look-up all uris as they are.
|
String |
toString() |
addDomain, addDomain, addDomainPattern, addDomainPattern, addDomainPatterns, addDomains, addResource, addResources, addResources, addSchema, addSchemas, addSchemas, getMappingString, mapDomain, mapUri, patternIterator, quote, resolve, resolve, resolver, uri, useSimpleQuotingimmutable, joinpublic FileResolver(Path base, Path check)
base - base path, relative to which all requests will be looked upcheck - path that contains all available files. Access outside
of this path will be prevented. If null, every file in the
file system can be accessed.public FileResolver(File base, String check)
base - base path, relative to which all requests will be looked upcheck - path that contains all available files. Access outside
of this path will be prevented. If null, every file in the
file system can be accessed.public FileResolver()
public FileResolver(String base)
base - base path, relative to which all requests will be looked uppublic FileResolver(File base)
base - base path, relative to which all requests will be looked uppublic UriMappingResolver lookupAll()
UriMappingResolveraddDomain("", "$1").lookupAll in class UriMappingResolverprotected RResponse get(RRequest request, String source)
UriMappingResolvernull if it could
not be found.get in class UriMappingResolvernullpublic String toString()
toString in class UriMappingResolverCopyright © 2015. All rights reserved.