Examples of relativeTo()


Examples of org.apache.wink.server.utils.SystemLinksBuilder.relativeTo()

        @Produces("application/atom+xml")
        public String getAtom(@Context LinkBuilders builders) {

            List<SyndLink> links = new ArrayList<SyndLink>();
            SystemLinksBuilder builder = builders.createSystemLinksBuilder();
            builder.relativeTo(URI.create("http://localhost:80/foo/bar")).build(links);
            assertEquals(3, links.size());
            assertLink(links, "self", null, "../systemLinksRelativeToAnotherUri");
            assertLink(links,
                       "alternate",
                       "application/xml",
View Full Code Here

Examples of org.jboss.dna.graph.property.Path.relativeTo()

        if (path.getLastSegment().hasIndex()) {
            return getNode(path);
        }
        // We can't tell from the name, so ask for an item ...
        try {
            return cache.findJcrItem(null, rootPath, path.relativeTo(rootPath));
        } catch (ItemNotFoundException e) {
            throw new PathNotFoundException(e.getMessage(), e);
        }
    }
View Full Code Here

Examples of org.jboss.dna.graph.property.Path.relativeTo()

        if (path.getLastSegment().hasIndex()) {
            return getNode(path);
        }
        // We can't tell from the name, so ask for an item ...
        try {
            return cache.findJcrItem(null, rootPath, path.relativeTo(rootPath));
        } catch (ItemNotFoundException e) {
            throw new PathNotFoundException(e.getMessage(), e);
        }
    }
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.