public class ResourcePathResolver extends Object
List> res = new ResourcePathResolver(factoryInstance, relativeResource, "../../foobar").resolve();
Where factoryInstance is an instance of ResourceFactory
, relativeResource is a resource,
such as a file or directory, for which the relative result for ../../foobar will be calculated.
Wildcards * and ? are accepted.Constructor and Description |
---|
ResourcePathResolver(ResourceFactory factory,
Resource<?> res,
String path) |
Modifier and Type | Method and Description |
---|---|
static String |
pathspecToRegEx(String pathSpec) |
List<Resource<?>> |
resolve()
Resolve the results.
|
List<Resource<?>> |
search()
Perform a search, by doing a breadth-first traversal of the resource tree for resources that match the path
string.
|
public ResourcePathResolver(ResourceFactory factory, Resource<?> res, String path)
public List<Resource<?>> resolve()
public List<Resource<?>> search()
Copyright © 2015 JBoss by Red Hat. All rights reserved.