Class PathMappings<E>

  • Type Parameters:
    E - the type of mapping endpoint
    All Implemented Interfaces:
    java.lang.Iterable<MappedResource<E>>, Dumpable

    @ManagedObject("Path Mappings")
    @Deprecated(since="2021-05-27")
    public class PathMappings<E>
    extends java.lang.Object
    implements java.lang.Iterable<MappedResource<E>>, Dumpable
    Deprecated.
    The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
    Path Mappings of PathSpec to Resource.

    Sorted into search order upon entry into the Set

    • Field Summary

      • Fields inherited from interface org.eclipse.jetty.util.component.Dumpable

        KEY
    • Constructor Summary

      Constructors 
      Constructor Description
      PathMappings()
      Deprecated.
       
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static PathSpec asPathSpec​(java.lang.String pathSpecString)
      Deprecated.
       
      java.lang.String dump()
      Deprecated.
       
      void dump​(java.lang.Appendable out, java.lang.String indent)
      Deprecated.
      Dump this object (and children) into an Appendable using the provided indent after any new lines.
      E get​(PathSpec spec)
      Deprecated.
       
      java.util.List<MappedResource<E>> getMappings()
      Deprecated.
       
      MappedResource<E> getMatch​(java.lang.String path)
      Deprecated.
       
      java.util.List<MappedResource<E>> getMatches​(java.lang.String path)
      Deprecated.
      Return a list of MappedResource matches for the specified path.
      java.util.Iterator<MappedResource<E>> iterator()
      Deprecated.
       
      boolean put​(java.lang.String pathSpecString, E resource)
      Deprecated.
       
      boolean put​(PathSpec pathSpec, E resource)
      Deprecated.
       
      boolean remove​(PathSpec pathSpec)
      Deprecated.
       
      void removeIf​(java.util.function.Predicate<MappedResource<E>> predicate)
      Deprecated.
       
      void reset()
      Deprecated.
       
      int size()
      Deprecated.
       
      java.lang.String toString()
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.eclipse.jetty.util.component.Dumpable

        dumpSelf
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • PathMappings

        public PathMappings()
        Deprecated.
    • Method Detail

      • dump

        public java.lang.String dump()
        Deprecated.
        Specified by:
        dump in interface Dumpable
      • dump

        public void dump​(java.lang.Appendable out,
                         java.lang.String indent)
                  throws java.io.IOException
        Deprecated.
        Description copied from interface: Dumpable
        Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.
        Specified by:
        dump in interface Dumpable
        Parameters:
        out - The appendable to dump to
        indent - The indent to apply after any new lines.
        Throws:
        java.io.IOException - if unable to write to Appendable
      • size

        public int size()
        Deprecated.
      • reset

        public void reset()
        Deprecated.
      • removeIf

        public void removeIf​(java.util.function.Predicate<MappedResource<E>> predicate)
        Deprecated.
      • getMatches

        public java.util.List<MappedResource<E>> getMatches​(java.lang.String path)
        Deprecated.
        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
      • getMatch

        public MappedResource<E> getMatch​(java.lang.String path)
        Deprecated.
      • iterator

        public java.util.Iterator<MappedResource<E>> iterator()
        Deprecated.
        Specified by:
        iterator in interface java.lang.Iterable<E>
      • asPathSpec

        public static PathSpec asPathSpec​(java.lang.String pathSpecString)
        Deprecated.
      • get

        public E get​(PathSpec spec)
        Deprecated.
      • put

        public boolean put​(java.lang.String pathSpecString,
                           E resource)
        Deprecated.
      • put

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

        public boolean remove​(PathSpec pathSpec)
        Deprecated.
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.lang.Object