@Test public void maxAge() { final CorsConfig cors = withAnyOrigin().maxAge(3000).build(); assertThat(cors.maxAge(), is(3000L)); }
public long maxAge() { return maxAge; }
CorsConfig { public long maxAge() { return maxAge; } }
CorsConfig { public long maxAge() { return maxAge; } private  CorsConfig(final Builder builder); }
CorsConfig { public long maxAge() { return maxAge; } private  CorsConfig(final Builder builder); boolean isCorsSupportEnabled(); boolean isAnyOriginSupported(); String origin(); Set<String> origins(); boolean isNullOriginAllowed(); Set<String> exposedHeaders(); boolean isCredentialsAllowed(); long maxAge(); Set<HttpMethod> allowedRequestMethods(); Set<String> allowedRequestHeaders(); HttpHeaders preflightResponseHeaders(); boolean isShortCurcuit(); @Override String toString(); static Builder withAnyOrigin(); static Builder withOrigin(final String origin); static Builder withOrigins(final String... origins); }
CorsConfig { public long maxAge() { return maxAge; } private  CorsConfig(final Builder builder); boolean isCorsSupportEnabled(); boolean isAnyOriginSupported(); String origin(); Set<String> origins(); boolean isNullOriginAllowed(); Set<String> exposedHeaders(); boolean isCredentialsAllowed(); long maxAge(); Set<HttpMethod> allowedRequestMethods(); Set<String> allowedRequestHeaders(); HttpHeaders preflightResponseHeaders(); boolean isShortCurcuit(); @Override String toString(); static Builder withAnyOrigin(); static Builder withOrigin(final String origin); static Builder withOrigins(final String... origins);  }