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

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

      Constructor Description
    • 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

        public java.lang.String handleRequest​(java.lang.String query)
                                       throws org.codehaus.jettison.json.JSONException
        Handles all requests for theping service.
        query - the query
        String Some request
        org.codehaus.jettison.json.JSONException - thrown if something is completely going wrong.