org.basex.http.rest.RESTText Maven / Gradle / Ivy
The newest version!
package org.basex.http.rest;
import org.basex.query.*;
import org.basex.query.value.item.*;
import org.basex.util.*;
/**
* This class assembles texts which are used in the HTTP classes.
*
* @author BaseX Team 2005-24, BSD License
* @author Christian Gruen
*/
interface RESTText {
/** REST. */
String REST = "REST";
/** REST URI. */
byte[] REST_URI = Token.concat(QueryText.BASEX_URI, "/", QueryText.REST_PREFIX);
/** QName. */
QNm Q_DATABASES = new QNm("databases", REST_URI);
/** QName. */
QNm Q_DATABASE = new QNm("database", REST_URI);
/** QName. */
QNm Q_RESOURCE = new QNm("resource", REST_URI);
/** QName. */
QNm Q_DIR = new QNm("dir", REST_URI);
/** QName. */
QNm Q_NAME = new QNm("name");
/** Commands operation. */
String COMMANDS = "commands";
/** Command operation. */
String COMMAND = "command";
/** Run operation. */
String RUN = "run";
/** Query operation. */
String QUERY = "query";
/** Initial context. */
String CONTEXT = "context";
}