public class CsvAction extends Action<CsvAction>
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.
Rule.RuleMatcherconfigMap, configStr, excludeMatchers, excludeOn, includeMatchers, includeOn, log, name, order| Constructor and Description |
|---|
CsvAction() |
| Modifier and Type | Method and Description |
|---|---|
void |
run(Request req,
Response res)
Override this method with your custom business logic or override one of the
http method "doMETHOD" specific handlers.
|
java.lang.String |
toCsv(JSArray arr) |
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, withOrderpublic void run(Request req, Response res) throws ApiException
Actionrun in class Action<CsvAction>req - the Request being servicedres - the Reponse being generatedApiExceptionpublic java.lang.String toCsv(JSArray arr) throws ApiException
ApiExceptionCopyright © 2021 Rocket Partners, LLC. All rights reserved.