public class GeoJSONResponseWriter extends JSONResponseWriter
SolrDocumentList
with a 'FeatureCollection', following the
specification in geojson.orgModifier and Type | Field and Description |
---|---|
static String |
FIELD |
CONTENT_TYPE_JSON_UTF8
CONTENT_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, init
public 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 QueryResponseWriter
write
in class JSONResponseWriter
IOException
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.