Class FormParameters
java.lang.Object
org.springframework.util.MultiValueMapAdapter<String,String>
org.springframework.util.LinkedMultiValueMap<String,String>
org.springframework.restdocs.operation.FormParameters
- All Implemented Interfaces:
Serializable, Cloneable, Map<String, List<String>>, MultiValueMap<String,String>
A request's form parameters, derived from its form URL encoded body content.
- Since:
- 3.0.0
- Author:
- Andy Wilkinson
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic FormParametersfrom(OperationRequest request) Extracts the form parameters from the body 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 form parameters from the body of the givenrequest. If the request has no body content, an emptyFormParametersis returned, rather thannull.- Parameters:
request- the request- Returns:
- the form parameters extracted from the body content
-