public class GeoJsonQueryResponseTransformer extends Object implements QueryResponseTransformer
QueryResponseTransformer interface to transform a SourceResponse
instance to GeoJSON. This class creates JSON objects for the list of Metacards that are the results from a query. This class leverages the GeoJsonMetacardTransformer to convert metacards to JSON.| Modifier and Type | Field and Description |
|---|---|
protected static MimeType |
DEFAULT_MIME_TYPE |
static String |
ID |
| Constructor and Description |
|---|
GeoJsonQueryResponseTransformer() |
| Modifier and Type | Method and Description |
|---|---|
static net.minidev.json.JSONObject |
convertToJSON(Result result) |
String |
toString() |
BinaryContent |
transform(SourceResponse upstreamResponse,
Map<String,Serializable> arguments)
Transforms the list of results into the
BinaryContent. |
public static final String ID
protected static final MimeType DEFAULT_MIME_TYPE
public static net.minidev.json.JSONObject convertToJSON(Result result) throws CatalogTransformerException
CatalogTransformerExceptionpublic BinaryContent transform(SourceResponse upstreamResponse, Map<String,Serializable> arguments) throws CatalogTransformerException
QueryResponseTransformerBinaryContent.transform in interface QueryResponseTransformerarguments - the arguments that may be used to execute the transformCatalogTransformerException - if the response cannot be transformedThis work is licensed under a Creative Commons Attribution 4.0 International License.