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

handlebars.JavaJaxRS.resteasy.eap.apiServiceImpl.mustache Maven / Gradle / Ivy

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

import {{package}}.*;
{{#hasModel}}import {{modelPackage}}.*;{{/hasModel}}
{{#operations}}{{#operation}}{{#isMultipart}}import org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataInput;
{{/isMultipart}}{{/operation}}{{/operations}}

{{#imports}}import {{import}};
{{/imports}}

import java.util.List;
import java.util.Map;

import java.io.InputStream;

{{#jakarta}}
import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.core.SecurityContext;
{{/jakarta}}
{{^jakarta}}
import javax.ws.rs.core.Response;
import javax.ws.rs.core.SecurityContext;
{{/jakarta}}

{{>generatedAnnotation}}
{{#operations}}
public class {{classname}}ServiceImpl implements {{classname}} {
  {{#operation}}
  {{#contents}}
      public Response {{nickname}}({{#isMultipart}}MultipartFormDataInput input,{{/isMultipart}}{{#parameters}}{{>serviceQueryParams}}{{>servicePathParams}}{{>serviceHeaderParams}}{{>serviceBodyParams}}{{>serviceFormParams}}{{>serviceCookieParams}}{{>comma}}{{/parameters}}SecurityContext securityContext) {
      // do some magic!
      return Response.ok().build();
  }
  {{/contents}}
  {{/operation}}
}
{{/operations}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy