Search in sources :

Example 11 with CachingHttpHeadersFilter

use of io.github.jhipster.web.filter.CachingHttpHeadersFilter in project jhipster-sample-app-hazelcast by jhipster.

the class WebConfigurer method initCachingHttpHeadersFilter.

/**
 * Initializes the caching HTTP Headers Filter.
 */
private void initCachingHttpHeadersFilter(ServletContext servletContext, EnumSet<DispatcherType> disps) {
    log.debug("Registering Caching HTTP Headers Filter");
    FilterRegistration.Dynamic cachingHttpHeadersFilter = servletContext.addFilter("cachingHttpHeadersFilter", new CachingHttpHeadersFilter(jHipsterProperties));
    cachingHttpHeadersFilter.addMappingForUrlPatterns(disps, true, "/content/*");
    cachingHttpHeadersFilter.addMappingForUrlPatterns(disps, true, "/app/*");
    cachingHttpHeadersFilter.setAsyncSupported(true);
}
Also used : CachingHttpHeadersFilter(io.github.jhipster.web.filter.CachingHttpHeadersFilter)

Example 12 with CachingHttpHeadersFilter

use of io.github.jhipster.web.filter.CachingHttpHeadersFilter in project jhipster-sample-app-oauth2 by jhipster.

the class WebConfigurer method initCachingHttpHeadersFilter.

/**
 * Initializes the caching HTTP Headers Filter.
 */
private void initCachingHttpHeadersFilter(ServletContext servletContext, EnumSet<DispatcherType> disps) {
    log.debug("Registering Caching HTTP Headers Filter");
    FilterRegistration.Dynamic cachingHttpHeadersFilter = servletContext.addFilter("cachingHttpHeadersFilter", new CachingHttpHeadersFilter(jHipsterProperties));
    cachingHttpHeadersFilter.addMappingForUrlPatterns(disps, true, "/content/*");
    cachingHttpHeadersFilter.addMappingForUrlPatterns(disps, true, "/app/*");
    cachingHttpHeadersFilter.setAsyncSupported(true);
}
Also used : CachingHttpHeadersFilter(io.github.jhipster.web.filter.CachingHttpHeadersFilter)

Example 13 with CachingHttpHeadersFilter

use of io.github.jhipster.web.filter.CachingHttpHeadersFilter in project jhipster-sample-app-websocket by jhipster.

the class WebConfigurer method initCachingHttpHeadersFilter.

/**
 * Initializes the caching HTTP Headers Filter.
 */
private void initCachingHttpHeadersFilter(ServletContext servletContext, EnumSet<DispatcherType> disps) {
    log.debug("Registering Caching HTTP Headers Filter");
    FilterRegistration.Dynamic cachingHttpHeadersFilter = servletContext.addFilter("cachingHttpHeadersFilter", new CachingHttpHeadersFilter(jHipsterProperties));
    cachingHttpHeadersFilter.addMappingForUrlPatterns(disps, true, "/content/*");
    cachingHttpHeadersFilter.addMappingForUrlPatterns(disps, true, "/app/*");
    cachingHttpHeadersFilter.setAsyncSupported(true);
}
Also used : CachingHttpHeadersFilter(io.github.jhipster.web.filter.CachingHttpHeadersFilter)

Example 14 with CachingHttpHeadersFilter

use of io.github.jhipster.web.filter.CachingHttpHeadersFilter in project jhipster-registry by jhipster.

the class WebConfigurer method initCachingHttpHeadersFilter.

/**
 * Initializes the caching HTTP Headers Filter.
 */
private void initCachingHttpHeadersFilter(ServletContext servletContext, EnumSet<DispatcherType> disps) {
    log.debug("Registering Caching HTTP Headers Filter");
    FilterRegistration.Dynamic cachingHttpHeadersFilter = servletContext.addFilter("cachingHttpHeadersFilter", new CachingHttpHeadersFilter(jHipsterProperties));
    cachingHttpHeadersFilter.addMappingForUrlPatterns(disps, true, "/content/*");
    cachingHttpHeadersFilter.addMappingForUrlPatterns(disps, true, "/app/*");
    cachingHttpHeadersFilter.setAsyncSupported(true);
}
Also used : CachingHttpHeadersFilter(io.github.jhipster.web.filter.CachingHttpHeadersFilter)

Example 15 with CachingHttpHeadersFilter

use of io.github.jhipster.web.filter.CachingHttpHeadersFilter in project tutorials by eugenp.

the class WebConfigurer method initCachingHttpHeadersFilter.

/**
 * Initializes the caching HTTP Headers Filter.
 */
private void initCachingHttpHeadersFilter(ServletContext servletContext, EnumSet<DispatcherType> disps) {
    log.debug("Registering Caching HTTP Headers Filter");
    FilterRegistration.Dynamic cachingHttpHeadersFilter = servletContext.addFilter("cachingHttpHeadersFilter", new CachingHttpHeadersFilter(jHipsterProperties));
    cachingHttpHeadersFilter.addMappingForUrlPatterns(disps, true, "/content/*");
    cachingHttpHeadersFilter.addMappingForUrlPatterns(disps, true, "/app/*");
    cachingHttpHeadersFilter.setAsyncSupported(true);
}
Also used : CachingHttpHeadersFilter(io.github.jhipster.web.filter.CachingHttpHeadersFilter)

Aggregations

CachingHttpHeadersFilter (io.github.jhipster.web.filter.CachingHttpHeadersFilter)17 FilterRegistration (javax.servlet.FilterRegistration)1