com.jiuxian.mossrose.ui.MossroseRequestHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mossrose-ui Show documentation
Show all versions of mossrose-ui Show documentation
User Interface for Mossrose
package com.jiuxian.mossrose.ui;
import java.util.List;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import com.jiuxian.mossrose.JobOperation;
import com.jiuxian.mossrose.ui.vo.JobVo;
import com.jiuxian.mossrose.ui.vo.JobVoHelper;
@Path("")
public class MossroseRequestHandler {
private JobOperation jobOperation;
protected MossroseRequestHandler(JobOperation jobOperation) {
super();
this.jobOperation = jobOperation;
}
@GET
@Path("all")
@Produces("application/json")
public Response> allJobInfo() {
return new Response>(0, JobVoHelper.toVos(jobOperation.allJobs()));
}
@POST
@Path("/all/pause")
@Produces("application/json")
public Response
© 2015 - 2024 Weber Informatics LLC | Privacy Policy