co.diji.solr
Class SolrResponseWriter

java.lang.Object
  extended by co.diji.solr.SolrResponseWriter

public class SolrResponseWriter
extends Object

Class to handle sending responses to Solr clients. Supports xml and javabin formats.


Field Summary
protected  org.elasticsearch.common.logging.ESLogger logger
           
 
Constructor Summary
SolrResponseWriter()
           
 
Method Summary
 void writeResponse(org.apache.solr.common.util.NamedList<Object> obj, org.elasticsearch.rest.RestRequest request, org.elasticsearch.rest.RestChannel channel)
          Serializes the NamedList in the specified output format and sends it to the Solr Client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.elasticsearch.common.logging.ESLogger logger
Constructor Detail

SolrResponseWriter

public SolrResponseWriter()
Method Detail

writeResponse

public void writeResponse(org.apache.solr.common.util.NamedList<Object> obj,
                          org.elasticsearch.rest.RestRequest request,
                          org.elasticsearch.rest.RestChannel channel)
Serializes the NamedList in the specified output format and sends it to the Solr Client.

Parameters:
obj - the NamedList response to serialize
request - the ES RestRequest
channel - the ES RestChannel


Copyright © 2011-2012. All Rights Reserved.