Class QueryParameters
java.lang.Object
org.springframework.util.MultiValueMapAdapter<String,String>
org.springframework.util.LinkedMultiValueMap<String,String>
org.springframework.restdocs.operation.QueryParameters
- All Implemented Interfaces:
Serializable, Cloneable, Map<String, List<String>>, MultiValueMap<String,String>
A request's query parameters, derived from its URI's query string.
- Since:
- 3.0.0
- Author:
- Andy Wilkinson
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic QueryParametersfrom(OperationRequest request) Extracts the query parameters from the query string of the givenrequest.Methods inherited from class LinkedMultiValueMap
clone, deepCopyMethods inherited from class MultiValueMapAdapter
add, addAll, addAll, clear, containsKey, containsValue, entrySet, equals, forEach, get, getFirst, hashCode, isEmpty, keySet, put, putAll, putIfAbsent, remove, set, setAll, size, toSingleValueMap, toString, valuesMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, getOrDefault, merge, remove, replace, replace, replaceAllMethods inherited from interface MultiValueMap
addIfAbsent, asSingleValueMap
-
Method Details
-
from
Extracts the query parameters from the query string of the givenrequest. If the request has no query string, an emptyQueryParametersis returned, rather thannull.- Parameters:
request- the request- Returns:
- the query parameters extracted from the request's query string
-