Package org.apache.wink.server.utils

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


                       "alternate",
                       "application/atom+xml",
                       "systemLinks/ContinuedSearch?alt=application%2Fatom%2Bxml");

            links = new ArrayList<SyndLink>();
            builder.resource(SystemLinksContinuedSearch3Resource.class)
                .pathParam("v1", "Continued").pathParam("v2", "Search").allResources(true)
                .build(links);
            assertEquals(6, links.size());
            assertLink(links, "self", null, "systemLinks/ContinuedSearch");
            assertLink(links, "edit", null, "systemLinks/ContinuedSearch");
View Full Code Here


                       "alternate",
                       "application/atom+xml",
                       "systemLinks/ContinuedSearch/SubResources/1?alt=application%2Fatom%2Bxml");

            links = new ArrayList<SyndLink>();
            builder.resource(SystemLinksContinuedSearchSubResources3Resource.class)
                .subResource("{id}").pathParam("v1", "Continued").pathParam("v2", "Search")
                .pathParam("id", "1").allResources(true).build(links);
            assertEquals(6, links.size());
            assertLink(links, "self", null, "systemLinks/ContinuedSearch/SubResources/1");
            assertLink(links, "edit", null, "systemLinks/ContinuedSearch/SubResources/1");
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.