handlebars.JavaJaxRS.cxf-cdi.apiServiceImpl.mustache Maven / Gradle / Ivy
package {{package}}.impl;
import {{package}}.*;
{{#hasModel}}import {{modelPackage}}.*;{{/hasModel}}
import org.apache.cxf.jaxrs.ext.multipart.Attachment;
{{#imports}}import {{import}};
{{/imports}}
import java.util.List;
import java.io.InputStream;
{{#jakarta}}
import jakarta.enterprise.context.RequestScoped;
import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.core.SecurityContext;
{{/jakarta}}
{{^jakarta}}
import javax.enterprise.context.RequestScoped;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.SecurityContext;
{{/jakarta}}
@RequestScoped
{{>generatedAnnotation}}
{{#operations}}
public class {{classname}}ServiceImpl implements {{classname}}Service {
{{#operation}}
{{#contents}}
@Override
public Response {{nickname}}({{#parameters}}{{>serviceQueryParams}}{{>servicePathParams}}{{>serviceHeaderParams}}{{>serviceBodyParams}}{{>serviceFormParams}}, {{/parameters}}SecurityContext securityContext) {
// do some magic!
return Response.ok().entity("magic!").build();
}
{{/contents}}
{{/operation}}
}
{{/operations}}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy