Class Parameters

java.lang.Object
org.springframework.util.MultiValueMapAdapter<K,V>
org.springframework.util.LinkedMultiValueMap<String,String>
org.springframework.restdocs.operation.Parameters
All Implemented Interfaces:
Serializable, Cloneable, Map<String,List<String>>, org.springframework.util.MultiValueMap<String,String>

public class Parameters extends org.springframework.util.LinkedMultiValueMap<String,String>
The parameters received in a request.
Author:
Andy Wilkinson
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from interface java.util.Map

    Map.Entry<K extends Object,V extends Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a new Parameters containing only the parameters that do no appear in the query string of the given uri.
    Converts the parameters to a query string suitable for use in a URI or the body of a form-encoded request.

    Methods inherited from class org.springframework.util.LinkedMultiValueMap

    clone, deepCopy

    Methods inherited from class org.springframework.util.MultiValueMapAdapter

    add, addAll, addAll, clear, containsKey, containsValue, entrySet, equals, get, getFirst, hashCode, isEmpty, keySet, put, putAll, remove, set, setAll, size, toSingleValueMap, toString, values

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.springframework.util.MultiValueMap

    addIfAbsent
  • Constructor Details

    • Parameters

      public Parameters()
  • Method Details

    • toQueryString

      public String toQueryString()
      Converts the parameters to a query string suitable for use in a URI or the body of a form-encoded request.
      Returns:
      the query string
    • getUniqueParameters

      public Parameters getUniqueParameters(URI uri)
      Returns a new Parameters containing only the parameters that do no appear in the query string of the given uri.
      Parameters:
      uri - the uri
      Returns:
      the unique parameters