Package org.eclipse.jetty.http.pathmap
Class PathMappings<E>
- java.lang.Object
-
- org.eclipse.jetty.http.pathmap.PathMappings<E>
-
- Type Parameters:
E
- the type of mapping endpoint
- All Implemented Interfaces:
Iterable<MappedResource<E>>
,Dumpable
@ManagedObject("Path Mappings") @Deprecated(since="2021-05-27") public class PathMappings<E> extends Object implements 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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Dumpable
Dumpable.DumpableContainer
-
-
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(String pathSpecString)
Deprecated.String
dump()
Deprecated.void
dump(Appendable out, String indent)
Deprecated.Dump this object (and children) into an Appendable using the provided indent after any new lines.E
get(PathSpec spec)
Deprecated.List<MappedResource<E>>
getMappings()
Deprecated.MappedResource<E>
getMatch(String path)
Deprecated.List<MappedResource<E>>
getMatches(String path)
Deprecated.Return a list of MappedResource matches for the specified path.Iterator<MappedResource<E>>
iterator()
Deprecated.boolean
put(String pathSpecString, E resource)
Deprecated.boolean
put(PathSpec pathSpec, E resource)
Deprecated.boolean
remove(PathSpec pathSpec)
Deprecated.void
removeIf(Predicate<MappedResource<E>> predicate)
Deprecated.void
reset()
Deprecated.int
size()
Deprecated.String
toString()
Deprecated.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
dump
public void dump(Appendable out, String indent) throws 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 interfaceDumpable
- Parameters:
out
- The appendable to dump toindent
- The indent to apply after any new lines.- Throws:
IOException
- if unable to write to Appendable
-
getMappings
@ManagedAttribute(value="mappings", readonly=true) public List<MappedResource<E>> getMappings()
Deprecated.
-
size
public int size()
Deprecated.
-
reset
public void reset()
Deprecated.
-
removeIf
public void removeIf(Predicate<MappedResource<E>> predicate)
Deprecated.
-
getMatches
public List<MappedResource<E>> getMatches(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(String path)
Deprecated.
-
iterator
public Iterator<MappedResource<E>> iterator()
Deprecated.
-
remove
public boolean remove(PathSpec pathSpec)
Deprecated.
-
-