Examples of ZPath


Examples of org.apache.zookeeper.server.jersey.jaxb.ZPath

                createMode);

        URI uri = ui.getAbsolutePathBuilder().path(newPath).build();

        return Response.created(uri).entity(
                new JSONWithPadding(new ZPath(newPath,
                        ui.getAbsolutePath().toString()))).build();
    }
View Full Code Here

Examples of org.apache.zookeeper.server.jersey.jaxb.ZPath

        String newPath = zk.create(path, data, Ids.OPEN_ACL_UNSAFE,
                createMode);

        URI uri = ui.getAbsolutePathBuilder().path(newPath).build();

        return Response.created(uri).entity(new ZPath(newPath,
                ui.getAbsolutePath().toString())).build();
    }
View Full Code Here

Examples of org.apache.zookeeper.server.jersey.jaxb.ZPath

        return Arrays.asList(new Object[][] {
          {MediaType.APPLICATION_JSON,
              baseZnode, "foo bar", "utf8",
              Response.Status.CREATED,
              new ZPath(baseZnode + "/foo bar"), null,
              false },
          {MediaType.APPLICATION_JSON, baseZnode, "c-t1", "utf8",
              Response.Status.CREATED, new ZPath(baseZnode + "/c-t1"), null,
              false },
          {MediaType.APPLICATION_JSON, baseZnode, "c-t1", "utf8",
              Response.Status.CONFLICT, null, null, false },
          {MediaType.APPLICATION_JSON, baseZnode, "c-t2", "utf8",
              Response.Status.CREATED, new ZPath(baseZnode + "/c-t2"),
              "".getBytes(), false },
          {MediaType.APPLICATION_JSON, baseZnode, "c-t2", "utf8",
              Response.Status.CONFLICT, null, null, false },
          {MediaType.APPLICATION_JSON, baseZnode, "c-t3", "utf8",
              Response.Status.CREATED, new ZPath(baseZnode + "/c-t3"),
              "foo".getBytes(), false },
          {MediaType.APPLICATION_JSON, baseZnode, "c-t3", "utf8",
              Response.Status.CONFLICT, null, null, false },
          {MediaType.APPLICATION_JSON, baseZnode, "c-t4", "base64",
              Response.Status.CREATED, new ZPath(baseZnode + "/c-t4"),
              "foo".getBytes(), false },
          {MediaType.APPLICATION_JSON, baseZnode, "c-", "utf8",
              Response.Status.CREATED, new ZPath(baseZnode + "/c-"), null,
              true },
          {MediaType.APPLICATION_JSON, baseZnode, "c-", "utf8",
              Response.Status.CREATED, new ZPath(baseZnode + "/c-"), null,
              true }
          });
    }
View Full Code Here

Examples of org.apache.zookeeper.server.jersey.jaxb.ZPath

        if (expectedPath == null) {
            return;
        }

        ZPath zpath = cr.getEntity(ZPath.class);
        if (sequence) {
            assertTrue(zpath.path.startsWith(expectedPath.path));
            assertTrue(zpath.uri.startsWith(r.path(path).toString()));
        } else {
            assertEquals(expectedPath, zpath);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.