Package org.apache.solr.response
Class VelocityResponseWriter
- java.lang.Object
-
- org.apache.solr.response.VelocityResponseWriter
-
- All Implemented Interfaces:
QueryResponseWriter,NamedListInitializedPlugin,SolrCoreAware
public class VelocityResponseWriter extends Object implements QueryResponseWriter, SolrCoreAware
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONTENT_TYPEstatic StringDEFAULT_CONTENT_TYPEstatic StringJSONstatic StringJSON_CONTENT_TYPEstatic StringLAYOUTstatic StringLAYOUT_ENABLEDstatic StringLOCALEstatic StringPARAMS_RESOURCE_LOADER_ENABLEDstatic StringPROPERTIES_FILEstatic StringSOLR_RESOURCE_LOADER_ENABLEDstatic StringTEMPLATEstatic StringTEMPLATE_BASE_DIRstatic StringTEMPLATE_EXTENSION-
Fields inherited from interface org.apache.solr.response.QueryResponseWriter
CONTENT_TYPE_TEXT_ASCII, CONTENT_TYPE_TEXT_UTF8, CONTENT_TYPE_XML_UTF8
-
-
Constructor Summary
Constructors Constructor Description VelocityResponseWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType(SolrQueryRequest request, SolrQueryResponse response)voidinform(SolrCore core)voidinit(NamedList args)voidwrite(Writer writer, SolrQueryRequest request, SolrQueryResponse response)
-
-
-
Field Detail
-
TEMPLATE_BASE_DIR
public static final String TEMPLATE_BASE_DIR
- See Also:
- Constant Field Values
-
PARAMS_RESOURCE_LOADER_ENABLED
public static final String PARAMS_RESOURCE_LOADER_ENABLED
- See Also:
- Constant Field Values
-
SOLR_RESOURCE_LOADER_ENABLED
public static final String SOLR_RESOURCE_LOADER_ENABLED
- See Also:
- Constant Field Values
-
PROPERTIES_FILE
public static final String PROPERTIES_FILE
- See Also:
- Constant Field Values
-
TEMPLATE
public static final String TEMPLATE
- See Also:
- Constant Field Values
-
LAYOUT
public static final String LAYOUT
- See Also:
- Constant Field Values
-
LAYOUT_ENABLED
public static final String LAYOUT_ENABLED
- See Also:
- Constant Field Values
-
CONTENT_TYPE
public static final String CONTENT_TYPE
- See Also:
- Constant Field Values
-
JSON
public static final String JSON
- See Also:
- Constant Field Values
-
LOCALE
public static final String LOCALE
- See Also:
- Constant Field Values
-
TEMPLATE_EXTENSION
public static final String TEMPLATE_EXTENSION
- See Also:
- Constant Field Values
-
DEFAULT_CONTENT_TYPE
public static final String DEFAULT_CONTENT_TYPE
- See Also:
- Constant Field Values
-
JSON_CONTENT_TYPE
public static final String JSON_CONTENT_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public void init(NamedList args)
- Specified by:
initin interfaceNamedListInitializedPlugin- Specified by:
initin interfaceQueryResponseWriter
-
inform
public void inform(SolrCore core)
- Specified by:
informin interfaceSolrCoreAware
-
getContentType
public String getContentType(SolrQueryRequest request, SolrQueryResponse response)
- Specified by:
getContentTypein interfaceQueryResponseWriter
-
write
public void write(Writer writer, SolrQueryRequest request, SolrQueryResponse response) throws IOException
- Specified by:
writein interfaceQueryResponseWriter- Throws:
IOException
-
-