org.apache.solr.request
Class VelocityResponseWriter

java.lang.Object
  extended by org.apache.solr.request.VelocityResponseWriter
All Implemented Interfaces:
org.apache.solr.request.QueryResponseWriter, org.apache.solr.util.plugin.NamedListInitializedPlugin

public class VelocityResponseWriter
extends Object
implements org.apache.solr.request.QueryResponseWriter


Field Summary
 
Fields inherited from interface org.apache.solr.request.QueryResponseWriter
CONTENT_TYPE_TEXT_ASCII, CONTENT_TYPE_TEXT_UTF8, CONTENT_TYPE_XML_UTF8
 
Constructor Summary
VelocityResponseWriter()
           
 
Method Summary
 String getContentType(org.apache.solr.request.SolrQueryRequest request, org.apache.solr.request.SolrQueryResponse response)
           
 void init(org.apache.solr.common.util.NamedList args)
           
 void write(Writer writer, org.apache.solr.request.SolrQueryRequest request, org.apache.solr.request.SolrQueryResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VelocityResponseWriter

public VelocityResponseWriter()
Method Detail

write

public void write(Writer writer,
                  org.apache.solr.request.SolrQueryRequest request,
                  org.apache.solr.request.SolrQueryResponse response)
           throws IOException
Specified by:
write in interface org.apache.solr.request.QueryResponseWriter
Throws:
IOException

getContentType

public String getContentType(org.apache.solr.request.SolrQueryRequest request,
                             org.apache.solr.request.SolrQueryResponse response)
Specified by:
getContentType in interface org.apache.solr.request.QueryResponseWriter

init

public void init(org.apache.solr.common.util.NamedList args)
Specified by:
init in interface org.apache.solr.request.QueryResponseWriter
Specified by:
init in interface org.apache.solr.util.plugin.NamedListInitializedPlugin


Copyright © 2011 Apache Software Foundation. All Rights Reserved.