Package org.eclipse.jetty.http.pathmap
Class MappedResource<E>
- java.lang.Object
-
- org.eclipse.jetty.http.pathmap.MappedResource<E>
-
- All Implemented Interfaces:
java.lang.Comparable<MappedResource<E>>
@ManagedObject("Mapped Resource") public class MappedResource<E> extends java.lang.Object implements java.lang.Comparable<MappedResource<E>>
-
-
Constructor Summary
Constructors Constructor Description MappedResource(PathSpec pathSpec, E resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(MappedResource<E> other)Comparison is based solely on the pathSpecbooleanequals(java.lang.Object obj)PathSpecgetPathSpec()EgetResource()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
compareTo
public int compareTo(MappedResource<E> other)
Comparison is based solely on the pathSpec- Specified by:
compareToin interfacejava.lang.Comparable<E>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.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:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-