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 int
compareTo(MappedResource<E> other)
Comparison is based solely on the pathSpecboolean
equals(java.lang.Object obj)
PathSpec
getPathSpec()
E
getResource()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
compareTo
public int compareTo(MappedResource<E> other)
Comparison is based solely on the pathSpec- Specified by:
compareTo
in interfacejava.lang.Comparable<E>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in 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:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-