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)
| 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 | } |