Class APIRequestHandler

    • Constructor Detail

      • APIRequestHandler

        public APIRequestHandler()
        Default constructor.
    • Method Detail

      • init

        public void init​(APIRequestContext context)
        Initialise the endpoint data.
      • GetSystemAttribute

        public static String GetSystemAttribute​(String name,
                                                Connection db)
                                         throws SQLException
        Gets the value of the given system attribute.
        Parameters:
        name -
        db -
        Returns:
        Value for the given system attribute, or null if it's not set.
        Throws:
        SQLException
      • writeResponse

        public void writeResponse​(OutputStream out,
                                  javax.json.JsonObject jsonOut)
        Write a given JSON response to a given OutputStream.
        Parameters:
        out - Output stream to write to.
        jsonOut - JSON object the write.