Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.gss.tds.dc.free.report.hibernate.expert.webservice;
- import javax.ws.rs.Consumes;
- import javax.ws.rs.POST;
- import javax.ws.rs.Path;
- import javax.ws.rs.Produces;
- import javax.ws.rs.core.MediaType;
- import org.apache.cxf.jaxrs.ext.multipart.Multipart;
- import com.gss.tds.dc.free.report.hibernate.expert.webservice.model.QueryResult;
- import com.gss.tds.dc.free.report.model.vo.Report;
- import com.gss.tds.dc.free.report.model.vo.helper.PagingParameter;
- import com.gss.tds.dc.restful.annotation.RestfulWebservice;
- @RestfulWebservice
- @Path("query")
- public interface QueryWebService {
- /**
- *
- * @param report
- */
- @POST
- @Path("report")
- @Produces(MediaType.APPLICATION_JSON)
- @Consumes(MediaType.APPLICATION_JSON)
- QueryResult query(Report report);
- @POST
- @Path("page")
- @Produces(MediaType.APPLICATION_JSON)
- @Consumes("multipart/mixed")
- QueryResult queryPage(
- @Multipart(value = "report", type = MediaType.APPLICATION_JSON) Report report,
- @Multipart(value = "gridParameter", type = MediaType.APPLICATION_JSON) PagingParameter gridParameter);
- @POST
- @Path("countTotal")
- @Consumes(MediaType.APPLICATION_JSON)
- @Produces(MediaType.TEXT_PLAIN)
- long countTotalRecords(Report report);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement