public class AggregateFilter extends IgnoreModuleRequestFilter
| Constructor and Description |
|---|
AggregateFilter() |
| Modifier and Type | Method and 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,
javax.servlet.ServletContext cssServletContext,
String resourcePath,
String content) |
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 |
getJavaScriptContent(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String resourcePath,
URL resourceURL) |
protected static String |
getJavaScriptContent(String resourceName,
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) |
isFilterEnabledgetLog, isFilterEnabled, setFilterEnabledpublic static String aggregateCss(ServletPaths servletPaths, String content) throws IOException
IOExceptionDynamicCSSUtil.propagateQueryString(String, String)public static String aggregateJavaScript(ServletPaths servletPaths, String[] fileNames)
public void init(javax.servlet.FilterConfig filterConfig)
init in interface javax.servlet.Filterinit in class com.liferay.portal.kernel.servlet.BaseFilterprotected static String getJavaScriptContent(String resourceName,
String content)
protected Object getBundleContent(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse)
throws IOException
IOExceptionprotected String getCacheFileName(javax.servlet.http.HttpServletRequest httpServletRequest)
protected Object getContent(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
javax.servlet.FilterChain filterChain)
throws Exception
Exceptionprotected String getCssContent(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
javax.servlet.ServletContext cssServletContext,
String resourcePath,
String content)
protected String getCssContent(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String resourcePath)
throws Exception
Exceptionprotected String getCssContent(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String resourcePath,
String content)
protected String getJavaScriptContent(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
String resourcePath,
URL resourceURL)
throws Exception
Exceptionprotected boolean isModuleRequest(javax.servlet.http.HttpServletRequest httpServletRequest)
isModuleRequest in class IgnoreModuleRequestFilterprotected void processFilter(javax.servlet.http.HttpServletRequest httpServletRequest,
javax.servlet.http.HttpServletResponse httpServletResponse,
javax.servlet.FilterChain filterChain)
throws Exception
processFilter in class com.liferay.portal.kernel.servlet.BaseFilterException