Package net.sf.tweety.web.services
Class PingService
- java.lang.Object
-
- net.sf.tweety.web.services.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.
-
-
-
Field Detail
-
ID
public static final java.lang.String ID
The identifier of this service.- See Also:
- Constant Field Values
-
-
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.
-
-