Package ddf.catalog.transform
Interface QueryResponseTransformer
public interface QueryResponseTransformer
The
QueryResponseTransformer is used to transform a list of Result objects from a SourceResponse. For example, if the list of
results contains XML data, the entire list can be transformed to HTML data.-
Method Summary
Modifier and TypeMethodDescriptiontransform(SourceResponse upstreamResponse, Map<String, Serializable> arguments) Transforms the list of results into theBinaryContent.
-
Method Details
-
transform
BinaryContent transform(SourceResponse upstreamResponse, Map<String, Serializable> arguments) throws CatalogTransformerExceptionTransforms the list of results into theBinaryContent.- Parameters:
arguments- the arguments that may be used to execute the transform- Returns:
- the transformed content
- Throws:
CatalogTransformerException- if the response cannot be transformed
-