All Downloads are FREE. Search and download functionalities are using the official Maven repository.

zone.cogni.lib.http.headers.HttpHeadersConfiguration Maven / Gradle / Ivy

The newest version!
package zone.cogni.lib.http.headers;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.validation.annotation.Validated;

@Configuration
public class HttpHeadersConfiguration {

  @Bean
  public CreateHttpHeaderFilter httpHeaderFilter() {
    return new CreateHttpHeaderFilter(httpHeadersProperties());
  }

  @Bean
  @ConfigurationProperties("cognizone.http")
  @Validated
  public HttpHeadersProperties httpHeadersProperties() {
    return new HttpHeadersProperties();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy