public class LicenseRenderer extends AbstractRenderer implements BotMessageRenderer
FIELD_TEXT, FIELD_TYPE, FIELD_URL, TYPE_FILE, TYPE_TEXT
Constructor and Description |
---|
LicenseRenderer() |
Modifier and Type | Method and Description |
---|---|
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
|
getConverters, setConverters
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConverters, setConverters
public boolean isInvoked(com.fasterxml.jackson.databind.JsonNode nodeResponse)
BotMessageRenderer
isInvoked
in interface BotMessageRenderer
nodeResponse
- The response nodepublic String render(Map map)
BotMessageRenderer
render
in interface BotMessageRenderer
map
- The map corresponding to the JSON responsepublic String getPostContentType()
BotMessageRenderer
getPostContentType
in interface BotMessageRenderer
Copyright © 2020 City of Paris. All rights reserved.