Class PingService

java.lang.Object
org.tweetyproject.web.services.PingService

@Path("ping") public class PingService extends Object
Provides a simple ping service that always returns the request sent to it.
  • Field Details

  • Constructor Details

    • PingService

      public PingService()
  • Method Details

    • handleRequest

      @POST @Produces("application/json") @Consumes("application/json") public String handleRequest(String query) throws org.codehaus.jettison.json.JSONException
      Handles all requests for theping service.
      Parameters:
      query - the query
      Returns:
      String Some request
      Throws:
      org.codehaus.jettison.json.JSONException - thrown if something is completely going wrong.