public class MetadataResponseFormatter
extends java.lang.Object
Metadata into a JSON format.| Constructor and Description |
|---|
MetadataResponseFormatter() |
| Modifier and Type | Method and Description |
|---|---|
static MetadataResponse |
formatResponse(java.util.List<Metadata> metadataList,
java.lang.String path)
Converts list of
Metadata to JSON String format. |
public static MetadataResponse formatResponse(java.util.List<Metadata> metadataList, java.lang.String path) throws java.io.IOException
Metadata to JSON String format.metadataList - list of metadata objects to convertpath - path stringjava.io.IOException - if converting the data to JSON fails