Class RawResponseWriter

  • All Implemented Interfaces:
    BinaryQueryResponseWriter, QueryResponseWriter, NamedListInitializedPlugin

    public class RawResponseWriter
    extends Object
    implements BinaryQueryResponseWriter
    Writes a ContentStream directly to the output.

    This writer is a special case that extends and alters the QueryResponseWriter contract. If SolrQueryResponse contains a ContentStream added with the key CONTENT then this writer will output that stream exactly as is (with its Content-Type). if no such ContentStream has been added, then a "base" QueryResponseWriter will be used to write the response according to the usual contract. The name of the "base" writer can be specified as an initialization param for this writer, or it defaults to the "standard" writer.

    Since:
    solr 1.3