public abstract String value
1) If the response is a Map the map's keys become the variable names in the template and the
map's respective values are the values to those names
2) If the response is any type, other than Map or POJOs the variable name in the template
is "_response", i.e. if the method returns the number 100 in the template it can be accessed as
${_response}. Note, this variable is always available, even for POJOs and Maps.
3) For POJOs the field names will become the variable names
4) Reserved variable names that will be automatically available in the template include:
${_query} ,${_form},${_files},${_session},${_cookies},${_request},${_response},${_server}
| Template Variable name | Class/Type |
| ${_query} | QueryParams |
| ${_form} | FormParams |
| ${_files} | FormFiles |
| ${_session} | io.higgs.http.server.params.HttpSession |
| ${_cookies} | HttpCookies |
| ${_request} | HttpRequest |
| ${_response} | Object - the object returned by the resource method |
| ${_server} | N/A |
public abstract String[] fragments
value() is used as the name of the file to generate.
If a file exists with that name it will be replaced with the newly generated file. If value() returns
null or an empty string then a random file name is used. The location of the generated files is determined by
the server config's temp_templates directoryCopyright © 2012-2015. All Rights Reserved.