@Path(value="delp")
public class DelpService
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
ID
The identifier of this service. 
 | 
static java.lang.String | 
JSON_ATTR_ANSWER
Attribute "answer" of replies. 
 | 
static java.lang.String | 
JSON_ATTR_CMD
Attribute "cmd" of queries referring to the requested command. 
 | 
static java.lang.String | 
JSON_ATTR_COMP
Attribute "comparison criterion" of queries. 
 | 
static java.lang.String | 
JSON_ATTR_COMP_EMPTY
Value "empty criterion" of attribute "comparison criterion" of queries. 
 | 
static java.lang.String | 
JSON_ATTR_COMP_GENSPEC
Value "generalized specificity" of attribute "comparison criterion" of queries. 
 | 
static java.lang.String | 
JSON_ATTR_EMAIL
Attribute "email" of queries/replies, used for identification and logging purposes. 
 | 
static java.lang.String | 
JSON_ATTR_ERROR
Attribute "error" of replies giving some explanation of an error. 
 | 
static java.lang.String | 
JSON_ATTR_KB
Attribute "kb" of queries. 
 | 
static java.lang.String | 
JSON_ATTR_QUERY
Attribute "query" of queries. 
 | 
static java.lang.String | 
JSON_ATTR_REPLY
Attribute "reply" of replies referring to the reply type (same values as "cmd"). 
 | 
static java.lang.String | 
JSON_VAL_QUERY
"query" command. 
 | 
| Constructor and Description | 
|---|
DelpService()  | 
| Modifier and Type | Method and Description | 
|---|---|
private org.codehaus.jettison.json.JSONObject | 
handleQuery(org.codehaus.jettison.json.JSONObject query)
Handles the "query" command 
 | 
java.lang.String | 
handleRequest(java.lang.String query)
Handles all requests for the delp service. 
 | 
public static final java.lang.String ID
public static final java.lang.String JSON_ATTR_CMD
public static final java.lang.String JSON_ATTR_REPLY
public static final java.lang.String JSON_VAL_QUERY
public static final java.lang.String JSON_ATTR_EMAIL
public static final java.lang.String JSON_ATTR_ANSWER
public static final java.lang.String JSON_ATTR_ERROR
public static final java.lang.String JSON_ATTR_KB
public static final java.lang.String JSON_ATTR_QUERY
public static final java.lang.String JSON_ATTR_COMP
public static final java.lang.String JSON_ATTR_COMP_GENSPEC
public static final java.lang.String JSON_ATTR_COMP_EMPTY
@POST
 @Produces(value="application/json")
 @Consumes(value="application/json")
public java.lang.String handleRequest(java.lang.String query)
                                                                                                               throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException - thrown if something is completely going wrong.private org.codehaus.jettison.json.JSONObject handleQuery(org.codehaus.jettison.json.JSONObject query)
                                                   throws org.codehaus.jettison.json.JSONException
query - some queryorg.codehaus.jettison.json.JSONException