Package org.tweetyproject.web.services
Class PingService
java.lang.Object
org.tweetyproject.web.services.PingService
Provides a simple ping service that always returns the request
sent to it.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandleRequest
(String query) Handles all requests for theping service.
-
Field Details
-
ID
The identifier of this service.- See Also:
-
-
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.
-