public URL getQueryUrl() throws Exception { RepositoryNode repositoryNode = new RepositoryNode(this.workspace.getRepository()); StringBuilder url = new StringBuilder(repositoryNode.getUrl().toString()); // add workspace path url.append('/') .append(JsonUtils.encode(workspace.getName())) .append(IJsonConstants.QUERY_CONTEXT); return new URL(url.toString()); }
/** @param workspace the repository workspace (never <code>null</code>) */ public WorkspaceNode(Workspace workspace) { super(workspace.getName()); this.workspace = workspace; }