Interface DirectoryListParser

All Known Implementing Classes:
NaiveDirectoryListParser

public interface DirectoryListParser
  • Method Summary

    Modifier and Type
    Method
    Description
    default List<String>
    Collect the result of parseResponseStream as a list.
    For all keys in a KeyValuesCollection, return all unique KeyParts following a prefix (relative-to) given during construction, after filtering out keys according to a given predicate.
  • Method Details

    • parseResponse

      default List<String> parseResponse()
      Collect the result of parseResponseStream as a list.
      Returns:
      the collected results
    • parseResponseStream

      Stream<String> parseResponseStream()
      For all keys in a KeyValuesCollection, return all unique KeyParts following a prefix (relative-to) given during construction, after filtering out keys according to a given predicate. In the most common usage, paths ending in "guard" are filtered IN, making the next level distinct (and including __meta). In another usage, the filter removes only the following __meta KeyPart.
      Returns:
      a stream of KeyPath parts