@Retention(value=RUNTIME) @Target(value=PARAMETER) public @interface QueryMap
... @RequestLine("POST /servers") void servers(@QueryMap MapThe annotated parameter must be an instance of); ... @RequestLine("GET /servers/{serverId}?count={count}") void get(@Param("serverId") String serverId, @Param("count") int count, @QueryMap Map ); ...
Map
, and the keys must be Strings. The
query value of a key will be the value of its toString method, except in the following cases:
Iterable
, it is converted to a List
of String objects
where each value in the list is either null if the original value was null or the value's
toString representation otherwise.
RequestTemplate.query(String, String...)
.Modifier and Type | Optional Element and Description |
---|---|
boolean |
encoded
Deprecated.
|
public abstract boolean encoded
Deprecation: there are two options
Param.encoded()
Copyright © 2012–2023 OpenFeign. All rights reserved.