Package org.jbehave.core.io.rest
Class IndexWithBreadcrumbs
- java.lang.Object
-
- org.jbehave.core.io.rest.IndexWithBreadcrumbs
-
- All Implemented Interfaces:
ResourceIndexer
- Direct Known Subclasses:
IndexFromRedmine,IndexFromXWiki
public abstract class IndexWithBreadcrumbs extends Object implements ResourceIndexer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIndexWithBreadcrumbs.ToLowerCase
-
Constructor Summary
Constructors Constructor Description IndexWithBreadcrumbs(RESTClient client, ResourceNameResolver nameResolver)
-
Method Summary
Modifier and Type Method Description protected voidaddBreadcrumbs(Map<String,Resource> index)protected abstract Map<String,Resource>createIndexFromEntity(String rootURI, String entity)protected Map<String,Resource>createIndexFromPaths(String rootURI, String rootPath, String syntax, String includes)Map<String,Resource>indexResources(String rootURI)Indexes resources retrieved from the given root URIMap<String,Resource>indexResources(String rootURI, String rootPath, String syntax, String includes)Indexes resources found in the given root pathprotected StringresolveName(String input)protected abstract Stringuri(String rootPath)
-
-
-
Constructor Detail
-
IndexWithBreadcrumbs
public IndexWithBreadcrumbs(RESTClient client, ResourceNameResolver nameResolver)
-
-
Method Detail
-
indexResources
public Map<String,Resource> indexResources(String rootURI)
Description copied from interface:ResourceIndexerIndexes resources retrieved from the given root URI- Specified by:
indexResourcesin interfaceResourceIndexer- Parameters:
rootURI- the root URI- Returns:
- The Map of index Resource objects
-
indexResources
public Map<String,Resource> indexResources(String rootURI, String rootPath, String syntax, String includes)
Description copied from interface:ResourceIndexerIndexes resources found in the given root path- Specified by:
indexResourcesin interfaceResourceIndexer- Parameters:
rootURI- the root URIrootPath- the root path of the resources to indexsyntax- the syntax of the resources to index. Can benullor blank.includes- the Ant-like pattern of the paths to index. Can benullor blank.- Returns:
- The Map of index Resource objects
-
createIndexFromPaths
protected Map<String,Resource> createIndexFromPaths(String rootURI, String rootPath, String syntax, String includes)
-
createIndexFromEntity
protected abstract Map<String,Resource> createIndexFromEntity(String rootURI, String entity)
-
-