E
- the type of mapping endpoint@ManagedObject(value="Path Mappings") public class PathMappings<E> extends java.lang.Object implements java.lang.Iterable<MappedResource<E>>, Dumpable
Sorted into search order upon entry into the Set
Constructor and Description |
---|
PathMappings() |
Modifier and Type | Method and Description |
---|---|
static PathSpec |
asPathSpec(java.lang.String pathSpecString) |
java.lang.String |
dump() |
void |
dump(java.lang.Appendable out,
java.lang.String indent)
Dump this object (and children) into an Appendable using the provided indent after any new lines.
|
E |
get(PathSpec spec) |
java.util.List<MappedResource<E>> |
getMappings() |
MappedResource<E> |
getMatch(java.lang.String path) |
java.util.List<MappedResource<E>> |
getMatches(java.lang.String path)
Return a list of MappedResource matches for the specified path.
|
java.util.Iterator<MappedResource<E>> |
iterator() |
boolean |
put(PathSpec pathSpec,
E resource) |
boolean |
put(java.lang.String pathSpecString,
E resource) |
boolean |
remove(PathSpec pathSpec) |
void |
removeIf(java.util.function.Predicate<MappedResource<E>> predicate) |
void |
reset() |
int |
size() |
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
dump, dumpObject, dumpObjects, dumpSelf
public void dump(java.lang.Appendable out, java.lang.String indent) throws java.io.IOException
Dumpable
@ManagedAttribute(value="mappings", readonly=true) public java.util.List<MappedResource<E>> getMappings()
public int size()
public void reset()
public void removeIf(java.util.function.Predicate<MappedResource<E>> predicate)
public java.util.List<MappedResource<E>> getMatches(java.lang.String path)
path
- the path to return matches onpublic MappedResource<E> getMatch(java.lang.String path)
public java.util.Iterator<MappedResource<E>> iterator()
iterator
in interface java.lang.Iterable<MappedResource<E>>
public static PathSpec asPathSpec(java.lang.String pathSpecString)
public boolean put(java.lang.String pathSpecString, E resource)
public boolean remove(PathSpec pathSpec)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 1995–2023 Webtide. All rights reserved.