Tabnine Logo
ResourceIndexer
Code IndexAdd Tabnine to your IDE (free)

How to use
ResourceIndexer
in
org.jbehave.core.io.rest

Best Java code snippets using org.jbehave.core.io.rest.ResourceIndexer (Showing top 4 results out of 315)

origin: org.jbehave/jbehave-rest

public void exportResources(String rootURI) {
  Map<String, Resource> index = indexer.indexResources(rootURI,
      sourcePath, syntax, includes);
  readResources(index, sourcePath, sourceExt);
  uploadResources(index);
}
origin: org.jbehave/jbehave-rest

public void importResources(String rootURI) {
  Map<String, Resource> index = indexer.indexResources(rootURI);
  loadResources(index);
  writeResources(index, targetPath, targetExt);
}
origin: jbehave/jbehave-web

private void indexResources() {
  try {
    String uri = configurer.getURI();
    Map<String, Resource> index = indexer.indexResources(uri);
    wikiContext.setTreeRoots(treeRoots(treeResources(index)));
  } catch (Exception e) {
    List<TreeResource> roots = new ArrayList<TreeResource>();
    roots.add(new TreeResource(new Resource("http://wiki", "Wiki")));
    wikiContext.setTreeRoots(roots);
    // Allow for failures in indexing resources
  }
}
origin: jbehave/jbehave-web

  private void indexResources() {
    String uri = configurer.getURI();
    Map<String, Resource> resources = indexer.indexResources(uri);
    wikiContext.setIndex(resources);        
    @SuppressWarnings("unchecked")
    PropertyListView<SerializableResource> view = (PropertyListView<SerializableResource>) get("resourcesList");
    view.setDefaultModel(new ListModel<SerializableResource>(wikiContext.getResources()));
  }
}
org.jbehave.core.io.restResourceIndexer

Javadoc

Indexes the resources available from the REST root URI. The index is represented as a map, indexed by the name of the resource.

Most used methods

  • indexResources
    Indexes resources found in the given root path

Popular in Java

  • Running tasks concurrently on multiple threads
  • runOnUiThread (Activity)
  • getApplicationContext (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JButton (javax.swing)
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now