org.apache.solr.response
Class VelocityResponseWriter

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

public class VelocityResponseWriter
extends Object
implements QueryResponseWriter


Field Summary
 
Fields inherited from interface org.apache.solr.response.QueryResponseWriter
CONTENT_TYPE_TEXT_ASCII, CONTENT_TYPE_TEXT_UTF8, CONTENT_TYPE_XML_UTF8
 
Constructor Summary
VelocityResponseWriter()
           
 
Method Summary
 String getContentType(SolrQueryRequest request, SolrQueryResponse response)
           
 void init(NamedList args)
           
 void write(Writer writer, SolrQueryRequest 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,
                  SolrQueryRequest request,
                  SolrQueryResponse response)
           throws IOException
Specified by:
write in interface QueryResponseWriter
Throws:
IOException

getContentType

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

init

public void init(NamedList args)
Specified by:
init in interface QueryResponseWriter
Specified by:
init in interface NamedListInitializedPlugin


Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.