public class ThymeleafResponseWriter extends Object implements org.apache.solr.response.QueryResponseWriter, org.apache.solr.util.plugin.SolrCoreAware
| Constructor and Description |
|---|
ThymeleafResponseWriter() |
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType(org.apache.solr.request.SolrQueryRequest request,
org.apache.solr.response.SolrQueryResponse response) |
protected org.thymeleaf.TemplateEngine |
getEngine() |
void |
inform(org.apache.solr.core.SolrCore core)
This get's called as soon the core is ready, which is after the
init(NamedList) method below.
|
void |
init(org.apache.solr.common.util.NamedList args)
Configures engine and template resolving.
|
protected void |
preProcess(org.thymeleaf.context.WebContext context,
org.apache.solr.request.SolrQueryRequest request,
org.apache.solr.response.SolrQueryResponse response) |
void |
write(Writer writer,
org.apache.solr.request.SolrQueryRequest request,
org.apache.solr.response.SolrQueryResponse response) |
public void inform(org.apache.solr.core.SolrCore core)
inform in interface org.apache.solr.util.plugin.SolrCoreAwarepublic void write(Writer writer, org.apache.solr.request.SolrQueryRequest request, org.apache.solr.response.SolrQueryResponse response)
write in interface org.apache.solr.response.QueryResponseWriterprotected void preProcess(org.thymeleaf.context.WebContext context,
org.apache.solr.request.SolrQueryRequest request,
org.apache.solr.response.SolrQueryResponse response)
protected org.thymeleaf.TemplateEngine getEngine()
public String getContentType(org.apache.solr.request.SolrQueryRequest request, org.apache.solr.response.SolrQueryResponse response)
getContentType in interface org.apache.solr.response.QueryResponseWriterpublic void init(org.apache.solr.common.util.NamedList args)
init in interface org.apache.solr.response.QueryResponseWriterinit in interface org.apache.solr.util.plugin.NamedListInitializedPluginCopyright © 2020 solr.cool. All rights reserved.