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

Method get

basex-api/src/main/java/org/basex/http/rest/RESTQuery.java:68–74  ·  view source on GitHub ↗

Creates a new instance of this command. @param session REST session @param query query @param bindings external bindings @return command @throws IOException I/O exception

(final RESTSession session, final String query,
      final Map<String, Map.Entry<Object, String>> bindings)

Source from the content-addressed store, hash-verified

66 * @throws IOException I/O exception
67 */
68 @SuppressWarnings("unused")
69 static RESTQuery get(final RESTSession session, final String query,
70 final Map<String, Map.Entry<Object, String>> bindings) throws IOException {
71
72 final String uri = session.conn.context.soptions.get(StaticOptions.WEBPATH);
73 return new RESTQuery(session.add(new XQuery(query).baseURI(uri)), bindings);
74 }
75}

Callers 2

getMethod · 0.95
getMethod · 0.95

Calls 3

getMethod · 0.65
addMethod · 0.65
baseURIMethod · 0.45

Tested by

no test coverage detected