public class Template extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Template.EncodingOptions |
static class |
Template.ExpansionOptions |
Modifier and Type | Method and Description |
---|---|
boolean |
encodeLiteral() |
String |
expand(Map<String,?> variables)
Expand the template.
|
Charset |
getCharset()
The Charset for the template.
|
List<String> |
getLiterals()
List of all Literals in the Template.
|
List<TemplateChunk> |
getTemplateChunks() |
List<String> |
getVariables()
Variable names contained in the template.
|
boolean |
isLiteral()
Flag to indicate that this template is a literal string, with no variable expressions.
|
protected String |
resolveExpression(feign.template.Expression expression,
Map<String,?> variables) |
String |
toString() |
public String expand(Map<String,?> variables)
variables
- containing the values for expansion.protected String resolveExpression(feign.template.Expression expression, Map<String,?> variables)
public List<String> getVariables()
public List<String> getLiterals()
public List<TemplateChunk> getTemplateChunks()
public boolean isLiteral()
public boolean encodeLiteral()
public Charset getCharset()
Copyright © 2012–2020 OpenFeign. All rights reserved.