public class WebQueryExecuter extends Object
Modifier and Type | Field and Description |
---|---|
static String |
NEWLINE
The Constant NEWLINE.
|
static String |
REQ_FILES
JSON key carrying the files.
|
static String |
REQ_WANT
JSON key carrying the requests.
|
static Pattern |
XML_PATTERN
Pattern to distinguish xml files from URLs.
|
Constructor and Description |
---|
WebQueryExecuter()
Instantiates a new web query executer.
|
Modifier and Type | Method and 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.
|
public static final String REQ_FILES
public static final String REQ_WANT
public static final Pattern XML_PATTERN
public static final String NEWLINE
public WebQueryExecuter()
public void executeQuery(org.json.simple.JSONObject jObj, org.json.simple.JSONObject toReturn, org.json.simple.JSONArray err) throws Exception
jObj
- the JSON object containing the requesttoReturn
- the object to store the resultserr
- the object to store errorsException
- the exceptionpublic final String usage()
Copyright © 2020 SEMS project @ University of Rostock. All rights reserved.