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

JavaVertXWebServer.headerParams.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
{{#isHeaderParam}}
{{^isArray}}
{{#isModel}}
        {{{dataType}}} {{paramName}} = requestParameters.headerParameter("{{baseName}}") != null ? DatabindCodec.mapper().convertValue(requestParameters.headerParameter("{{baseName}}").get(), new TypeReference<{{{dataType}}}>(){}) : null;
{{/isModel}}
{{^isModel}}
        {{{dataType}}} {{paramName}} = requestParameters.headerParameter("{{baseName}}") != null ? requestParameters.headerParameter("{{baseName}}").get{{dataType}}() : null;
{{/isModel}}
{{/isArray}}
{{#isArray}}
        {{{dataType}}} {{paramName}} = requestParameters.headerParameter("{{baseName}}") != null ? DatabindCodec.mapper().convertValue(requestParameters.headerParameter("{{baseName}}").get(), new TypeReference<{{{dataType}}}>(){}) : null;
{{/isArray}}
{{/isHeaderParam}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy