com.liferay.portal.servlet.filters.minifier
Class MinifierFilter
java.lang.Object
com.liferay.portal.kernel.servlet.BaseFilter
com.liferay.portal.servlet.filters.BasePortalFilter
com.liferay.portal.servlet.filters.minifier.MinifierFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public class MinifierFilter
- extends BasePortalFilter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MinifierFilter
public MinifierFilter()
init
public void init(javax.servlet.FilterConfig filterConfig)
- Specified by:
init
in interface javax.servlet.Filter
- Overrides:
init
in class BaseFilter
aggregateCss
protected String aggregateCss(String dir,
String content)
throws IOException
- Throws:
IOException
getMinifiedBundleContent
protected String getMinifiedBundleContent(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
- Throws:
IOException
getMinifiedContent
protected String getMinifiedContent(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain)
throws Exception
- Throws:
Exception
minifyCss
protected String minifyCss(javax.servlet.http.HttpServletRequest request,
File file)
throws IOException
- Throws:
IOException
minifyCss
protected String minifyCss(javax.servlet.http.HttpServletRequest request,
String content)
minifyJavaScript
protected String minifyJavaScript(File file)
throws IOException
- Throws:
IOException
minifyJavaScript
protected String minifyJavaScript(String content)
processFilter
protected void processFilter(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain)
throws Exception
- Specified by:
processFilter
in class BaseFilter
- Throws:
Exception
sterilizeQueryString
protected String sterilizeQueryString(String queryString)