Class MappedResource<E>

java.lang.Object
org.eclipse.jetty.http.pathmap.MappedResource<E>
All Implemented Interfaces:
Comparable<MappedResource<E>>

@ManagedObject("Mapped Resource") public class MappedResource<E> extends Object implements Comparable<MappedResource<E>>
  • Constructor Details

    • MappedResource

      public MappedResource(PathSpec pathSpec, E resource)
  • Method Details

    • getPreMatched

      public MatchedResource<E> getPreMatched()
      Returns:
      A pre match MatchedResource for ROOT and EXACT matches, else null;
    • compareTo

      public int compareTo(MappedResource<E> other)
      Comparison is based solely on the pathSpec
      Specified by:
      compareTo in interface Comparable<E>
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getPathSpec

      @ManagedAttribute(value="path spec", readonly=true) public PathSpec getPathSpec()
    • getResource

      @ManagedAttribute(value="resource", readonly=true) public E getResource()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object