java.lang.Object
org.eclipse.jetty.http.pathmap.PathMappings<E>
- Type Parameters:
E
- the type of mapping endpoint
- All Implemented Interfaces:
Iterable<MappedResource<E>>
,org.eclipse.jetty.util.component.Dumpable
@ManagedObject("Path Mappings")
public class PathMappings<E>
extends Object
implements Iterable<MappedResource<E>>, org.eclipse.jetty.util.component.Dumpable
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
org.eclipse.jetty.util.component.Dumpable.DumpableContainer
-
Field Summary
Fields inherited from interface org.eclipse.jetty.util.component.Dumpable
KEY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PathSpec
asPathSpec
(String pathSpecString) Deprecated, for removal: This API element is subject to removal in a future version.dump()
void
dump
(Appendable out, String indent) Deprecated, for removal: This API element is subject to removal in a future version.usegetMatched(String)
insteadgetMatched
(String path) getMatchedList
(String path) Return a list of MatchedResource matches for the specified path.getMatches
(String path) Return a list of MappedResource matches for the specified path.iterator()
boolean
boolean
boolean
void
removeIf
(Predicate<MappedResource<E>> predicate) void
reset()
int
size()
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, 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 Details
-
PathMappings
public PathMappings()
-
-
Method Details
-
dump
- Specified by:
dump
in interfaceorg.eclipse.jetty.util.component.Dumpable
-
dump
- Specified by:
dump
in interfaceorg.eclipse.jetty.util.component.Dumpable
- Throws:
IOException
-
getMappings
-
size
public int size() -
reset
public void reset() -
removeIf
-
getMatchedList
Return a list of MatchedResource matches for the specified path.- Parameters:
path
- the path to return matches on- Returns:
- the list of mapped resource the path matches on
-
getMatches
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
-
getMatched
-
getMatch
Deprecated, for removal: This API element is subject to removal in a future version.usegetMatched(String)
instead -
iterator
-
asPathSpec
Deprecated, for removal: This API element is subject to removal in a future version.usePathSpec.from(String)
instead -
get
-
put
-
put
-
remove
-
toString
-
PathSpec.from(String)
instead