All Downloads are FREE. Search and download functionalities are using the official Maven repository.

JavaVertXWebServer.queryParams.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
{{#isQueryParam}}
{{^isArray}}
{{#isModel}}
        {{{dataType}}} {{paramName}} = requestParameters.queryParameter("{{baseName}}") != null ? DatabindCodec.mapper().convertValue(requestParameters.queryParameter("{{baseName}}").get(), new TypeReference<{{{dataType}}}>(){}) : null;
{{/isModel}}
{{^isModel}}
        {{{dataType}}} {{paramName}} = requestParameters.queryParameter("{{baseName}}") != null ? requestParameters.queryParameter("{{baseName}}").get{{dataType}}() : {{^defaultValue}}null{{/defaultValue}}{{#defaultValue}}{{#isString}}{{#isEnum}}"{{/isEnum}}{{.}}{{#isEnum}}"{{/isEnum}}{{/isString}}{{#isBoolean}}{{.}}{{/isBoolean}}{{#isLong}}{{.}}L{{/isLong}}{{^isLong}}{{#isInteger}}{{.}}{{/isInteger}}{{^isInteger}}{{#isShort}}{{.}}{{/isShort}}{{/isInteger}}{{/isLong}}{{/defaultValue}};
{{/isModel}}
{{/isArray}}
{{#isArray}}
        {{{dataType}}} {{paramName}} = requestParameters.queryParameter("{{baseName}}") != null ? DatabindCodec.mapper().convertValue(requestParameters.queryParameter("{{baseName}}").get(), new TypeReference<{{{dataType}}}>(){}) : null;
{{/isArray}}
{{/isQueryParam}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy