Class AggregateFilter

Object
com.liferay.portal.kernel.servlet.BaseFilter
All Implemented Interfaces:
com.liferay.portal.kernel.servlet.LiferayFilter, javax.servlet.Filter

public class AggregateFilter extends IgnoreModuleRequestFilter
Author:
Brian Wing Shun Chan, Raymond Augé, Eduardo Lundgren
  • Constructor Details

    • AggregateFilter

      public AggregateFilter()
  • Method Details

    • aggregateCss

      public static String aggregateCss(ServletPaths servletPaths, String content) throws IOException
      Throws:
      IOException
      See Also:
    • aggregateJavaScript

      public static String aggregateJavaScript(ServletPaths servletPaths, String[] fileNames)
    • init

      public void init(javax.servlet.FilterConfig filterConfig)
      Specified by:
      init in interface javax.servlet.Filter
      Overrides:
      init in class com.liferay.portal.kernel.servlet.BaseFilter
    • getJavaScriptContent

      protected static String getJavaScriptContent(String resourceName, String content)
    • getBundleContent

      protected Object getBundleContent(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws IOException
      Throws:
      IOException
    • getCacheFileName

      protected String getCacheFileName(javax.servlet.http.HttpServletRequest httpServletRequest)
    • getContent

      protected Object getContent(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, javax.servlet.FilterChain filterChain) throws Exception
      Throws:
      Exception
    • getCssContent

      protected String getCssContent(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, javax.servlet.ServletContext cssServletContext, String resourcePath, String content)
    • getCssContent

      protected String getCssContent(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String resourcePath) throws Exception
      Throws:
      Exception
    • getCssContent

      protected String getCssContent(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String resourcePath, String content)
    • getJavaScriptContent

      protected String getJavaScriptContent(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String resourcePath, URL resourceURL) throws Exception
      Throws:
      Exception
    • isModuleRequest

      protected boolean isModuleRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
      Overrides:
      isModuleRequest in class IgnoreModuleRequestFilter
    • processFilter

      protected void processFilter(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, javax.servlet.FilterChain filterChain) throws Exception
      Overrides:
      processFilter in class com.liferay.portal.kernel.servlet.BaseFilter
      Throws:
      Exception