java.lang.Object
com.aoindustries.web.struts.SessionFilter
- All Implemented Interfaces:
Filter
Filter to write selective values into URL when cookies disabled for SEO purposes.
If the client doesn't support cookies:
- If this site supports more than one language, adds a language parameter if it doesn't exist.
- If this site supports more than one skin, adds a layout parameter if it doesn't exist.
This should be used for both the REQUEST and ERROR dispatchers.
This must be first in the filter chain, or at least before all filters that perform any URL rewriting. This filter selectively does not pass the URL rewriting up the filter chain, as it is intended to block default session URL rewriting provided by servlet contains.
- Author:
- AO Industries, Inc.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
void
doFilter
(ServletRequest request, ServletResponse response, FilterChain chain) void
init
(FilterConfig config)
-
Constructor Details
-
SessionFilter
public SessionFilter()
-
-
Method Details
-
init
-
doFilter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException - Specified by:
doFilter
in interfaceFilter
- Throws:
IOException
ServletException
-
destroy
public void destroy()
-