Class RouteDescriptions
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<RouteDescription>,Collection<RouteDescription>,List<RouteDescription>,RandomAccess
A list of
RouteDescription objects.
Typically returned by a route-index op so the listing is content-negotiated through the configured
serializers (browsable HTML table, JSON, or XML based on the Accept header), mirroring the way
ChildResourceDescriptions backs the child-resource navigation page.
See Also:
- Since:
- 10.0.0
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a newRouteDescriptionto this list.static RouteDescriptionscreate()Static creator.Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll
-
Constructor Details
-
RouteDescriptions
public RouteDescriptions()
-
-
Method Details
-
create
Static creator.- Returns:
- A new
RouteDescriptionsobject.
-
append
public RouteDescriptions append(String path, List<String> methods, String summary, String description, boolean deprecated) Adds a newRouteDescriptionto this list.- Parameters:
path- The mount path of the operation.methods- The HTTP methods the operation responds to.summary- The operation summary.description- The operation description.deprecated- Whether the operation is deprecated.- Returns:
- This object.
-