Class ResourceListing

java.lang.Object
org.eclipse.jetty.server.ResourceListing

public class ResourceListing extends Object
Utility methods to generate a List of paths. TODO: add XML and JSON versions?
  • Field Details

    • LOG

      public static final org.slf4j.Logger LOG
  • Constructor Details

    • ResourceListing

      public ResourceListing()
  • Method Details

    • getAsXHTML

      public static String getAsXHTML(Resource resource, String base, boolean parent, String query)
      Convert the Resource directory into an XHTML directory listing.
      Parameters:
      resource - the resource to build the listing from
      base - The base URL
      parent - True if the parent directory should be included
      query - query params
      Returns:
      the XHTML as String