View Javadoc
1   package org.imageconverter.config.security;
2   
3   import javax.servlet.ServletContext;
4   
5   import org.springframework.security.web.context.AbstractSecurityWebApplicationInitializer;
6   import org.springframework.web.multipart.support.MultipartFilter;
7   
8   /**
9    * Insert a {@link MultipartFilter} to filter's chain.
10   * 
11   * @author Fernando Romulo da Silva
12   */
13  public class SecurityApplicationInitializer extends AbstractSecurityWebApplicationInitializer {
14  
15      /**
16       * {@inheritDoc}
17       */
18      @Override
19      protected void beforeSpringSecurityFilterChain(final ServletContext servletContext) {
20  	insertFilters(servletContext, new MultipartFilter());
21      }
22  }