Package io.inversion.action.misc
Class CsvAction
- All Implemented Interfaces:
Comparable<CsvAction>
Converts a JSON object/array response value into CSV format.
Works for a status code 200 GET request when 'format=csv' is passed in on the query string or the Endpoint or an action has 'format=csv' as part of its config.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.inversion.Rule
Rule.RuleMatcher -
Field Summary
Fields inherited from class io.inversion.Rule
configMap, configStr, excludeMatchers, excludeOn, includeMatchers, includeOn, log, name, order -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class io.inversion.Rule
checkLazyConfig, compareTo, doLazyConfig, getAllExcludePaths, getAllIncludePaths, getConfig, getConfig, getConfigKeys, getDefaultIncludeMatch, getExcludeMatchers, getIncludeMatchers, getName, getOrder, match, matches, matches, toString, withConfig, withExcludeOn, withExcludeOn, withExcludeOn, withIncludeOn, withIncludeOn, withIncludeOn, withName, withOrder
-
Constructor Details
-
CsvAction
public CsvAction()
-
-
Method Details
-
run
Description copied from class:ActionOverride this method with your custom business logic or override one of the http method "doMETHOD" specific handlers.- Overrides:
runin classAction<CsvAction>- Parameters:
req- the Request being servicedres- the Reponse being generated- Throws:
ApiException
-
toCsv
- Throws:
ApiException
-