public final class QueryTemplate extends Template
Template.EncodingOptions, Template.ExpansionOptions
Modifier and Type | Method and Description |
---|---|
static QueryTemplate |
append(QueryTemplate queryTemplate,
Iterable<String> values,
CollectionFormat collectionFormat)
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)
Create a new Query Template.
|
String |
expand(Map<String,?> variables)
Expand this template.
|
String |
getName() |
List<String> |
getValues() |
protected String |
resolveExpression(feign.template.Expression expression,
Map<String,?> variables) |
String |
toString() |
encode, getCharset, getLiterals, getVariables, isLiteral
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)
name
- of the query parameter.values
- in the template.charset
- for the template.collectionFormat
- to use.public static QueryTemplate append(QueryTemplate queryTemplate, Iterable<String> values, CollectionFormat collectionFormat)
queryTemplate
- to append to.values
- to append.public String getName()
public String expand(Map<String,?> variables)
protected String resolveExpression(feign.template.Expression expression, Map<String,?> variables)
resolveExpression
in class Template
Copyright © 2012–2019 OpenFeign. All rights reserved.