Class WebQueryExecuter
- java.lang.Object
-
- de.unirostock.sems.bives.webservice.WebQueryExecuter
-
public class WebQueryExecuter extends Object
Execute a web query using BiVeS.- Author:
- martin
-
-
Constructor Summary
Constructors Constructor Description WebQueryExecuter()
Instantiates a new web query executer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
executeQuery(org.json.simple.JSONObject jObj, org.json.simple.JSONObject toReturn, org.json.simple.JSONArray err)
Execute a query.String
usage()
Prepares the usage including an example.
-
-
-
Field Detail
-
REQ_FILES
public static final String REQ_FILES
JSON key carrying the files.- See Also:
- Constant Field Values
-
REQ_WANT
public static final String REQ_WANT
JSON key carrying the requests.- See Also:
- Constant Field Values
-
XML_PATTERN
public static final Pattern XML_PATTERN
Pattern to distinguish xml files from URLs.
-
NEWLINE
public static final String NEWLINE
The Constant NEWLINE.
-
-
Method Detail
-
executeQuery
public void executeQuery(org.json.simple.JSONObject jObj, org.json.simple.JSONObject toReturn, org.json.simple.JSONArray err) throws Exception
Execute a query.- Parameters:
jObj
- the JSON object containing the requesttoReturn
- the object to store the resultserr
- the object to store errors- Throws:
Exception
- the exception
-
usage
public final String usage()
Prepares the usage including an example.- Returns:
- the string
-
-