Class PathMappings<E>

  • Type Parameters:
    E - the type of mapping endpoint
    All Implemented Interfaces:
    Iterable<MappedResource<E>>, org.eclipse.jetty.util.component.Dumpable

    @ManagedObject("Path Mappings")
    public class PathMappings<E>
    extends Object
    implements Iterable<MappedResource<E>>, org.eclipse.jetty.util.component.Dumpable
    Path Mappings of PathSpec to Resource.

    Sorted into search order upon entry into the Set

    • Constructor Detail

      • PathMappings

        public PathMappings()
    • Method Detail

      • dump

        public String dump()
        Specified by:
        dump in interface org.eclipse.jetty.util.component.Dumpable
      • getMappings

        @ManagedAttribute(value="mappings",
                          readonly=true)
        public List<MappedResource<E>> getMappings()
      • size

        public int size()
      • reset

        public void reset()
      • getMatches

        public List<MappedResource<E>> getMatches​(String path)
        Return a list of MappedResource matches for the specified path.
        Parameters:
        path - the path to return matches on
        Returns:
        the list of mapped resource the path matches on
      • asPathSpec

        public static PathSpec asPathSpec​(String pathSpecString)
      • put

        public boolean put​(String pathSpecString,
                           E resource)
      • put

        public boolean put​(PathSpec pathSpec,
                           E resource)
      • remove

        public boolean remove​(PathSpec pathSpec)