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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    aggregateCss(ServletPaths servletPaths, String content)
     
    static String
    aggregateJavaScript(ServletPaths servletPaths, String[] fileNames)
     
    protected Object
    getBundleContent(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
     
    protected String
    getCacheFileName(javax.servlet.http.HttpServletRequest httpServletRequest)
     
    protected Object
    getContent(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, javax.servlet.FilterChain filterChain)
     
    protected String
    getCssContent(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String resourcePath)
     
    protected String
    getCssContent(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String resourcePath, String content)
     
    protected String
    getCssContent(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, javax.servlet.ServletContext cssServletContext, String resourcePath, String content)
     
    void
    init(javax.servlet.FilterConfig filterConfig)
     
    protected boolean
    isModuleRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
     
    protected void
    processFilter(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, javax.servlet.FilterChain filterChain)
     

    Methods inherited from class com.liferay.portal.servlet.filters.IgnoreModuleRequestFilter

    isFilterEnabled

    Methods inherited from class com.liferay.portal.servlet.filters.BasePortalFilter

    getLog, isFilterEnabled, setFilterEnabled

    Methods inherited from class com.liferay.portal.kernel.servlet.BaseFilter

    destroy, doFilter, getFilterConfig, processFilter

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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
    • 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)
    • 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