router.attach("", new QueryParser(c, new QueryTypeRouter(c)));
return router;
}
protected Restlet createConnectionRouter(Context c) {
Router router = new Router(c);
router.setDefaultMatchingMode(Template.MODE_STARTS_WITH);
router.attach("/" + STATEMENTS, StatementsResource.class);
router.attach("/" + CONTEXTS, ContextsResource.class);
router.attach("/" + SIZE, SizeResource.class);
router.attach("/" + METADATA, MetaDataResource.class);
router.attach("/" + NAMESPACES, createNamespacesRouter(c));
router.attach("/" + BNODES, BNodesResource.class);
router.attach("/" + QUERIES, createQueriesRouter(c));
router.attach("/" + BEGIN, BeginTxnResource.class);
router.attach("/" + COMMIT, CommitTxnResource.class);
router.attach("/" + ROLLBACK, RollbackTxnResource.class);
router.attach("/" + PING, PingConnectionResource.class);
router.attach("", new QueryParser(c, new QueryTypeRouter(c, ConnectionResource.class)));
return router;
}