@Test public void testValidations() { assertValidates(new JaxrsConfig() .setHstsMaxAge(new Duration(1, TimeUnit.MINUTES))); assertValidates(new JaxrsConfig()); assertFailsValidation(new JaxrsConfig().setHstsMaxAge(new Duration(1, TimeUnit.SECONDS)), "hstsMaxAge", "must be greater than or equal to 1m", MinDuration.class); }
@Config("jaxrs.hsts.max-age") public JaxrsConfig setHstsMaxAge(Duration hstsMaxAge) { this.hstsMaxAge = hstsMaxAge; return this; }
JaxrsConfig { @Config("jaxrs.hsts.max-age") public JaxrsConfig setHstsMaxAge(Duration hstsMaxAge) { this.hstsMaxAge = hstsMaxAge; return this; } }
JaxrsConfig { @Config("jaxrs.hsts.max-age") public JaxrsConfig setHstsMaxAge(Duration hstsMaxAge) { this.hstsMaxAge = hstsMaxAge; return this; }  }
JaxrsConfig { @Config("jaxrs.hsts.max-age") public JaxrsConfig setHstsMaxAge(Duration hstsMaxAge) { this.hstsMaxAge = hstsMaxAge; return this; }  @Config("jaxrs.hsts.max-age") JaxrsConfig setHstsMaxAge(Duration hstsMaxAge); @Nullable @MinDuration(value = "1m", message = "must be greater than or equal to 1m") Duration getHstsMaxAge(); @Config("jaxrs.hsts.include-sub-domains") JaxrsConfig setIncludeSubDomains(boolean includeSubDomains); boolean isIncludeSubDomains(); @Config("jaxrs.hsts.preload") JaxrsConfig setPreload(boolean preload); boolean isPreload(); @Config("testing.jaxrs.override-method-filter") JaxrsConfig setOverrideMethodFilter(boolean overrideMethodFilter); boolean isOverrideMethodFilter(); }
JaxrsConfig { @Config("jaxrs.hsts.max-age") public JaxrsConfig setHstsMaxAge(Duration hstsMaxAge) { this.hstsMaxAge = hstsMaxAge; return this; }  @Config("jaxrs.hsts.max-age") JaxrsConfig setHstsMaxAge(Duration hstsMaxAge); @Nullable @MinDuration(value = "1m", message = "must be greater than or equal to 1m") Duration getHstsMaxAge(); @Config("jaxrs.hsts.include-sub-domains") JaxrsConfig setIncludeSubDomains(boolean includeSubDomains); boolean isIncludeSubDomains(); @Config("jaxrs.hsts.preload") JaxrsConfig setPreload(boolean preload); boolean isPreload(); @Config("testing.jaxrs.override-method-filter") JaxrsConfig setOverrideMethodFilter(boolean overrideMethodFilter); boolean isOverrideMethodFilter();  }