Class WebQueryExecuter


  • public class WebQueryExecuter
    extends Object
    Execute a web query using BiVeS.
    Author:
    martin
    • Field Detail

      • XML_PATTERN

        public static final Pattern XML_PATTERN
        Pattern to distinguish xml files from URLs.
      • NEWLINE

        public static final String NEWLINE
        The Constant NEWLINE.
    • Constructor Detail

      • WebQueryExecuter

        public WebQueryExecuter()
        Instantiates a new web query executer.
    • 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 request
        toReturn - the object to store the results
        err - the object to store errors
        Throws:
        Exception - the exception
      • usage

        public final String usage()
        Prepares the usage including an example.
        Returns:
        the string