public final class QueryTemplate extends Object
| Modifier and Type | Method and Description |
|---|---|
static QueryTemplate |
append(QueryTemplate queryTemplate,
Iterable<String> values,
CollectionFormat collectionFormat,
boolean decodeSlash)
Append a value to the Query Template.
|
static QueryTemplate |
create(String name,
Iterable<String> values,
Charset charset)
Create a new Query Template.
|
static QueryTemplate |
create(String name,
Iterable<String> values,
Charset charset,
CollectionFormat collectionFormat) |
static QueryTemplate |
create(String name,
Iterable<String> values,
Charset charset,
CollectionFormat collectionFormat,
boolean decodeSlash)
Create a new Query Template.
|
String |
expand(Map<String,?> variables)
Expand this template.
|
String |
getName() |
List<String> |
getValues() |
List<String> |
getVariables() |
String |
toString() |
public static QueryTemplate create(String name, Iterable<String> values, Charset charset)
name - of the query parameter.values - in the template.charset - for the template.public static QueryTemplate create(String name, Iterable<String> values, Charset charset, CollectionFormat collectionFormat)
public static QueryTemplate create(String name, Iterable<String> values, Charset charset, CollectionFormat collectionFormat, boolean decodeSlash)
name - of the query parameter.values - in the template.charset - for the template.collectionFormat - to use.decodeSlash - if slash characters should be decodedpublic static QueryTemplate append(QueryTemplate queryTemplate, Iterable<String> values, CollectionFormat collectionFormat, boolean decodeSlash)
queryTemplate - to append to.values - to append.public String getName()
Copyright © 2012–2021 OpenFeign. All rights reserved.