public interface TemplateRenderer
| Modifier and Type | Method and Description |
|---|---|
LocalizedMessageResolver |
getLocalizedMessageResolver()
Gets an instance of
LocalizedMessageResolver |
String |
render(Map<String,String> context,
String templateName)
Renders a template
|
void |
render(Map<String,String> context,
String templateName,
Writer writer)
Renders a template
|
Response |
renderResponse(Exchange exc,
Map<String,String> context,
String templateName,
ResponseBuilder builder)
Renders a template and produces a
Response |
String render(Map<String,String> context, String templateName)
context - the template contexttemplateName - the template namevoid render(Map<String,String> context, String templateName, Writer writer)
context - the template contexttemplateName - the template namewriter - the Writer to write the rendered templateResponse renderResponse(Exchange exc, Map<String,String> context, String templateName, ResponseBuilder builder)
Responseexc - the Exchange used to obtain variables to combine with the supplied context.
Implementations will not mutate the Exchange instance.context - the template contexttemplateName - the template namebuilder - the ResponseBuilder. Implementations are expected to mutate this instanceResponse generated from the provided ResponseBuilder, using the specified template
to generate the body of the ResponseLocalizedMessageResolver getLocalizedMessageResolver()
LocalizedMessageResolverLocalizedMessageResolverCopyright 2023 Ping Identity Corp. All rights reserved.