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

handlebars.JavaJaxRS.cxf.apiServiceImpl.mustache Maven / Gradle / Ivy

There is a newer version: 1.0.54
Show newest version
package {{package}}.impl;

import {{package}}.*;
{{#imports}}import {{import}};
{{/imports}}

import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import java.util.Map;
import javax.ws.rs.*;
import javax.ws.rs.core.Response;
import org.apache.cxf.jaxrs.model.wadl.Description;
import org.apache.cxf.jaxrs.model.wadl.DocTarget;

import org.apache.cxf.jaxrs.ext.multipart.*;

{{#useSpringAnnotationConfig}}
import org.springframework.stereotype.Service;
{{/useSpringAnnotationConfig}}

{{#useSpringAnnotationConfig}}
@Service("{{classname}}")
{{/useSpringAnnotationConfig}}
{{#description}}
{{/description}}
{{#appName}}
/**
 * {{{appName}}}
 *
 {{#appDescription}}
 * 

{{{appDescription}}} {{/appDescription}} * */ {{/appName}} public class {{classname}}ServiceImpl implements {{classname}} { {{#operations}} {{#operation}} {{#contents}} {{#summary}} /** * {{summary}} * {{#notes}} * {{notes}} * {{/notes}} */ {{/summary}} public {{>returnTypes}} {{nickname}}({{#parameters}}{{>queryParamsImpl}}{{>pathParamsImpl}}{{>headerParamsImpl}}{{>bodyParamsImpl}}{{>formParamsImpl}}{{#hasMore}}, {{/hasMore}}{{/parameters}}) { // TODO: Implement... {{#useGenericResponse}}return Response.ok().entity("magic!").build();{{/useGenericResponse}}{{^useGenericResponse}}{{^vendorExtensions.x-java-is-response-void}}return null;{{/vendorExtensions.x-java-is-response-void}}{{/useGenericResponse}} } {{/contents}} {{/operation}} } {{/operations}}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy