Class PingService


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

      Fields 
      Modifier and Type Field Description
      static java.lang.String ID
      The identifier of this service.
    • Constructor Summary

      Constructors 
      Constructor Description
      PingService()  
    • Method Summary

      Modifier and Type Method Description
      java.lang.String handleRequest​(java.lang.String query)
      Handles all requests for theping service.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ID

        public static final java.lang.String ID
        The identifier of this service.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PingService

        public PingService()
    • Method Detail

      • handleRequest

        @POST
        @Produces("application/json")
        @Consumes("application/json")
        public java.lang.String handleRequest​(java.lang.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.