public class MSOfficeUserAgentFilter extends Object implements Filter
Filter
is a workaround for a bug in Microsoft Office which causes the http-session to get lost if a link
is being opened from inside a Microsoft Office document.The solution is to send a meta refresh if MS Office is detected as user-agent.
To enable this filter, add this to the web.xml:<filter> <filter-name>MSOfficeUserAgentFilter</filter-name> <filter-class>org.appng.core.controller.filter.MSOfficeUserAgentFilter</filter-class> </filter> <filter-mapping> <filter-name>MSOfficeUserAgentFilter</filter-name> <servlet-name>controller</servlet-name> <dispatcher>REQUEST</dispatcher> </filter-mapping>
Constructor and Description |
---|
MSOfficeUserAgentFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain) |
void |
init(FilterConfig filterConfig) |
public void init(FilterConfig filterConfig) throws ServletException
init
in interface Filter
ServletException
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException
doFilter
in interface Filter
IOException
ServletException
Copyright © 2011–2017 aiticon GmbH. All rights reserved.