Class PingService


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

      • PingService

        public PingService()
    • Method Detail

      • 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.