public enum RESTResponseFormat extends java.lang.Enum<RESTResponseFormat> implements ValueEnum
RestConnector DataSources.| Enum Constant and Description |
|---|
CSV Indicates that the the REST service response is in delimited text format in the body of the HTTP response. |
JSON Indicates that the REST service response is a valid JSON message. |
TEXT Indicates that REST service response is to be treated simply as a piece of text, with no parsing or other processing attempted. |
XML Indicates that the REST service response is an XML message. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String | getValue() |
static RESTResponseFormat | valueOf(java.lang.String name) Returns the enum constant of this type with the specified name. |
static RESTResponseFormat[] | values() Returns an array containing the constants of this enum type, in the order they are declared. |
public static final RESTResponseFormat JSON
XPaths, templates and scripting If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "json".
public static final RESTResponseFormat XML
If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "xml".
public static final RESTResponseFormat CSV
nativeNames are honored if the CSV text includes a header row RestConnector only supports a couple options for CSV-based REST services - see DataSource.csvDelimiter and DataSource.csvQuoteCharacter
If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "csv".
public static final RESTResponseFormat TEXT
transformResponseScript If this enumerated value is used in a Component XML file or server-side DataSource descriptor (.ds.xml file), use the value "text".
public static RESTResponseFormat[] values()
for (RESTResponseFormat c : RESTResponseFormat.values()) System.out.println(c);
public static RESTResponseFormat valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null