public interface BotMessageRenderer
| Modifier and Type | Field and Description |
|---|---|
static String |
FIELD_TEXT |
static String |
FIELD_TYPE |
static String |
FIELD_URL |
static String |
TYPE_FILE |
static String |
TYPE_TEXT |
| Modifier and Type | Method and Description |
|---|---|
List<Converter> |
getConverters()
Returns the list of converters
|
String |
getPostContentType()
Return the content type corresponding to this renderer
|
boolean |
isInvoked(com.fasterxml.jackson.databind.JsonNode nodeResponse)
Analyze the response node to tell if this renderer should be invoked
|
String |
render(Map map)
Render a JSON response as HTML
|
void |
setConverters(List<Converter> listConverters)
Define a list of converters used by the renderer
|
static final String FIELD_TYPE
static final String TYPE_TEXT
static final String TYPE_FILE
static final String FIELD_TEXT
static final String FIELD_URL
boolean isInvoked(com.fasterxml.jackson.databind.JsonNode nodeResponse)
nodeResponse - The response nodeString render(Map map)
map - The map corresponding to the JSON responseString getPostContentType()
void setConverters(List<Converter> listConverters)
listConverters - The list of convertersCopyright © 2019 City of Paris. All rights reserved.