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

JavaVertXServer.RxCall.mustache Maven / Gradle / Ivy

There is a newer version: 3.0.0-rc1
Show newest version
                service.{{operationId}}({{#hasParams}}{{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}{{/hasParams}}).subscribe(
                {{#returnType}}
                    result -> {
                    {{#isListContainer}}
                        message.reply(new JsonArray(Json.encode(result)).encodePrettily());
                    {{/isListContainer}}
                    {{^isListContainer}}
                        message.reply(new JsonObject(Json.encode(result)).encodePrettily());
                    {{/isListContainer}}
                {{/returnType}}
                {{^returnType}}
                    () -> {
                        message.reply(null);
                {{/returnType}}
                    },
                    error -> {
                        manageError(message, error, "{{#vendorExtensions}}{{x-serviceid}}{{/vendorExtensions}}");
                    });




© 2015 - 2024 Weber Informatics LLC | Privacy Policy