Package io.dropwizard.servlets

Examples of io.dropwizard.servlets.CacheBustingFilter


    swaggerConfig.setApiVersion("1");
    swaggerConfig.setBasePath("/rest");

    // cache configuration
    // prevent caching on REST resources, except for favicons
    environment.servlets().addFilter("cache-filter", new CacheBustingFilter() {
      @Override
      public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        String path = ((HttpServletRequest) request).getRequestURI();
        if (path.contains("/feed/favicon")) {
          chain.doFilter(request, response);
View Full Code Here

TOP

Related Classes of io.dropwizard.servlets.CacheBustingFilter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.