package ru sfedu droolsweb service import java io IOException import j

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package ru.sfedu.droolsweb.service;
import java.io.IOException;
import javax.ws.rs.FormParam;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.core.Response;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.json.simple.parser.ParseException;
import ru.sfedu.droolsweb.logic.JsonWorker;
import ru.sfedu.droolsweb.logic.Requester;
/**
*
* @author orus-kade
*/
@Path("/service")
public class DroolsWebService {
//static final Logger logger = LogManager.getLogger(DroolsWebService.class);
//просто тестовый метод
@GET
@Path("/test")
public Response test() {
//logger.info("method test");
return Response.ok("test").build();
}
}