Save This Page
Home » apache-solr-1.3.0 » org.apache.solr » request » [javadoc | source]
org.apache.solr.request
public class: XSLTResponseWriter [javadoc | source]
java.lang.Object
   org.apache.solr.request.XSLTResponseWriter

All Implemented Interfaces:
    QueryResponseWriter

QueryResponseWriter which captures the output of the XMLWriter (in memory for now, not optimal performancewise), and applies an XSLT transform to it.
Field Summary
public static final  String DEFAULT_CONTENT_TYPE     
public static final  String TRANSFORM_PARAM     
public static final  String CONTEXT_TRANSFORMER_KEY     
public static final  int XSLT_CACHE_DEFAULT     
Method from org.apache.solr.request.XSLTResponseWriter Summary:
getContentType,   getTransformer,   init,   write
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.solr.request.XSLTResponseWriter Detail:
 public String getContentType(SolrQueryRequest request,
    SolrQueryResponse response) 
 protected Transformer getTransformer(SolrQueryRequest request) throws IOException 
    Get Transformer from request context, or from TransformerProvider. This allows either getContentType(...) or write(...) to instantiate the Transformer, depending on which one is called first, then the other one reuses the same Transformer
 public  void init(NamedList n) 
 public  void write(Writer writer,
    SolrQueryRequest request,
    SolrQueryResponse response) throws IOException