Package org.jboss.resteasy.plugins.delegates

Examples of org.jboss.resteasy.plugins.delegates.LinkDelegate


    public static Matcher<String> isLink(String uri, String rel) {
        final Link expected = Link.fromUri(uri).rel(rel).build();
        return new CustomTypeSafeMatcher<String>(String.format("a Link-Header to <%s> with rel='%s'", uri, rel)) {
            @Override
            protected boolean matchesSafely(String item) {
                return expected.equals(new LinkDelegate().fromString(item));
            }
        };
    }
View Full Code Here


      addHeaderDelegate(URI.class, new UriHeaderDelegate());
      addHeaderDelegate(EntityTag.class, new EntityTagDelegate());
      addHeaderDelegate(CacheControl.class, new CacheControlDelegate());
      addHeaderDelegate(Locale.class, new LocaleDelegate());
      addHeaderDelegate(LinkHeader.class, new LinkHeaderDelegate());
      addHeaderDelegate(javax.ws.rs.core.Link.class, new LinkDelegate());
      addHeaderDelegate(Date.class, new DateDelegate());
   }
View Full Code Here

TOP

Related Classes of org.jboss.resteasy.plugins.delegates.LinkDelegate

Copyright © 2018 www.massapicom. 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.