public class CsvSerializer extends Object implements ResultSerializer
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_COLUMN_MAP
Property name for the CsvSerializer-specific column map where the value of this property
contains a map of resource property names to header descriptive names.
|
static String |
PROPERTY_COLUMN_ORDER
Property name for the CsvSerializer-specific column order where the value of this property
contains a list of resource property names in the order to export.
|
| Constructor and Description |
|---|
CsvSerializer() |
| Modifier and Type | Method and Description |
|---|---|
Object |
serialize(Result result)
Serialize the result into a CSV-formatted text document.
|
Object |
serializeError(ResultStatus error)
Serialize an error result to the format expected by the client.
|
public static final String PROPERTY_COLUMN_MAP
public static final String PROPERTY_COLUMN_ORDER
public Object serialize(Result result)
serialize in interface ResultSerializerresult - internal resultpublic Object serializeError(ResultStatus error)
ResultSerializerserializeError in interface ResultSerializererror - the error resultCopyright © 2022 Apache Software Foundation. All rights reserved.