public class GeoJSONResponseWriter extends JSONResponseWriter
SolrDocumentList with a 'FeatureCollection', following the
 specification in geojson.org| Modifier and Type | Field and Description | 
|---|---|
| static String | FIELD | 
CONTENT_TYPE_JSON_UTF8CONTENT_TYPE_TEXT_ASCII, CONTENT_TYPE_TEXT_UTF8, CONTENT_TYPE_XML_UTF8| Constructor and Description | 
|---|
| GeoJSONResponseWriter() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | write(Writer writer,
     SolrQueryRequest req,
     SolrQueryResponse rsp)Write a SolrQueryResponse, this method must be thread save. | 
getContentType, getPushWriter, initpublic static final String FIELD
public void write(Writer writer, SolrQueryRequest req, SolrQueryResponse rsp) throws IOException
QueryResponseWriter
 Information about the request (in particular: formatting options) may be 
 obtained from req but the dominant source of information 
 should be rsp.
 
There are no mandatory actions that write must perform. An empty write implementation would fulfill all interface obligations.
write in interface QueryResponseWriterwrite in class JSONResponseWriterIOExceptionCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.