MCPcopy Create free account
hub / github.com/BaseXdb/basex / WebText

Interface WebText

basex-api/src/main/java/org/basex/http/web/WebText.java:16–124  ·  view source on GitHub ↗

This class assembles texts which are used in the Web classes. @author BaseX Team, BSD License @author Christian Gruen

Source from the content-addressed store, hash-verified

14 * @author Christian Gruen
15 */
16public interface WebText {
17 /** WADL prefix. */
18 byte[] WADL_PREFIX = token("wadl");
19 /** WADL namespace. */
20 byte[] WADL_URI = token("http://wadl.dev.java.net/2009/02");
21
22 /** Permission token. */
23 String ALLOW = "allow";
24 /** Permission token. */
25 String PATH = "path";
26 /** Permission token. */
27 String METHOD = "method";
28 /** Parameters. */
29 String PARAMETERS = "parameters";
30 /** Headers. */
31 String HEADERS = "headers";
32 /** Permission token. */
33 String AUTHORIZATION = "authorization";
34
35 /** WebSocket string. */
36 String WEBSOCKET = "WebSocket";
37 /** RESTXQ string. */
38 String RESTXQ = "RESTXQ";
39 /** XHTML namespace. */
40 String XHTML_URL = "http://www.w3.org/1999/xhtml";
41 /** Init call. */
42 String INIT = ".init";
43
44 /** Error message. */
45 String ANN_MISSING = "Path annotation missing.";
46 /** Error message. */
47 String ANN_CONFLICT_X = "Conflicting annotations: %.";
48 /** Error message. */
49 String ANN_BODY_TWICE = "More than one body variable specified.";
50 /** Error message. */
51 String ANN_TWICE_X_X = "Annotation %% is specified twice.";
52 /** Error message. */
53 String INV_TEMPLATE_X = "Invalid path template: \"%\".";
54 /** Error message. */
55 String INV_ENCODING_X = "URL is invalid: \"%\".";
56 /** Error message. */
57 String INV_VARNAME_X = "Invalid variable name: $%.";
58 /** Error message. */
59 String INV_CODE_X = "Invalid error code: %.";
60 /** Error message. */
61 String INV_PRECEDENCE_X_X = "Errors must be of the same precedence (\"%\" vs \"%\").";
62 /** Error message. */
63 String INV_ERR_TWICE_X = "The same error has been specified twice: \"%\".";
64 /** Error message. */
65 String INV_NONS_X = "No namespace declared for '%'.";
66 /** Error message. */
67 String ARG_TYPE_X_X_X = "% must be of type %, supplied: %.";
68 /** Error message. */
69 String PARAM_MISSING_X = "Parameter $% missing in function declaration.";
70 /** Error message. */
71 String PARAM_DUPL_X = "$% is specified more than once.";
72 /** Error message. */
73 String VAR_UNDEFINED_X = "No binding defined for $%.";

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
tokenMethod · 0.65

Tested by

no test coverage detected