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

JavaVertXWebServer.pathParams.mustache Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy