Class DelpService


  • @Path("delp")
    public class DelpService
    extends Object
    Web service for defeasible logic programming.
    • Field Detail

      • JSON_ATTR_CMD

        public static final String JSON_ATTR_CMD
        Attribute "cmd" of queries referring to the requested command.
        See Also:
        Constant Field Values
      • JSON_ATTR_REPLY

        public static final String JSON_ATTR_REPLY
        Attribute "reply" of replies referring to the reply type (same values as "cmd").
        See Also:
        Constant Field Values
      • JSON_ATTR_EMAIL

        public static final String JSON_ATTR_EMAIL
        Attribute "email" of queries/replies, used for identification and logging purposes.
        See Also:
        Constant Field Values
      • JSON_ATTR_ERROR

        public static final String JSON_ATTR_ERROR
        Attribute "error" of replies giving some explanation of an error.
        See Also:
        Constant Field Values
      • JSON_ATTR_COMP

        public static final String JSON_ATTR_COMP
        Attribute "comparison criterion" of queries.
        See Also:
        Constant Field Values
      • JSON_ATTR_COMP_GENSPEC

        public static final String JSON_ATTR_COMP_GENSPEC
        Value "generalized specificity" of attribute "comparison criterion" of queries.
        See Also:
        Constant Field Values
      • JSON_ATTR_COMP_EMPTY

        public static final String JSON_ATTR_COMP_EMPTY
        Value "empty criterion" of attribute "comparison criterion" of queries.
        See Also:
        Constant Field Values
    • Constructor Detail

      • DelpService

        public DelpService()
    • 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 the delp service.
        Parameters:
        query - the query
        Returns:
        String A serialized JSON containing the reply.
        Throws:
        org.codehaus.jettison.json.JSONException - thrown if something is completely going wrong.