@Test public void testParseCacheControlHeader() { RuntimeDelegate rd = RuntimeDelegate.getInstance(); HeaderDelegate<CacheControl> cacheControlHeaderDelegate = rd.createHeaderDelegate(CacheControl.class); if (cacheControlHeaderDelegate == null) { fail("CacheControl header delegate is not regestered in RuntimeDelegateImpl"); } try { cacheControlHeaderDelegate.fromString("no-cache"); fail("JAX-RS CacheControl type is designed to support only cache-response-directives - UnsupportedOperationException must be thrown"); } catch (UnsupportedOperationException e) { } }
public CacheControl fromString(String value) throws IllegalArgumentException { throw new UnsupportedOperationException( Messages.getMessage("jaxrsCacheControlTypeSupport")); }
CacheControlHeaderDelegate implements HeaderDelegate<CacheControl> { public CacheControl fromString(String value) throws IllegalArgumentException { throw new UnsupportedOperationException( Messages.getMessage("jaxrsCacheControlTypeSupport")); } }
CacheControlHeaderDelegate implements HeaderDelegate<CacheControl> { public CacheControl fromString(String value) throws IllegalArgumentException { throw new UnsupportedOperationException( Messages.getMessage("jaxrsCacheControlTypeSupport")); }  }
CacheControlHeaderDelegate implements HeaderDelegate<CacheControl> { public CacheControl fromString(String value) throws IllegalArgumentException { throw new UnsupportedOperationException( Messages.getMessage("jaxrsCacheControlTypeSupport")); }  CacheControl fromString(String value); String toString(CacheControl header); }
CacheControlHeaderDelegate implements HeaderDelegate<CacheControl> { public CacheControl fromString(String value) throws IllegalArgumentException { throw new UnsupportedOperationException( Messages.getMessage("jaxrsCacheControlTypeSupport")); }  CacheControl fromString(String value); String toString(CacheControl header);  }