org.cumulus4j.keymanager.back.shared
Class AjaxHeadersFilter
java.lang.Object
org.cumulus4j.keymanager.back.shared.AjaxHeadersFilter
- All Implemented Interfaces:
- Filter
public class AjaxHeadersFilter
- extends Object
- implements Filter
A filter adding headers to allow JavaScript clients to avoid
the same origin policy.
- Author:
- Marc Klinger - mklinger[at]nightlabs[dot]de
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AjaxHeadersFilter
public AjaxHeadersFilter()
init
public void init(FilterConfig filterConfig)
throws ServletException
- Specified by:
init
in interface Filter
- Throws:
ServletException
doFilter
public void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
throws IOException,
ServletException
- Specified by:
doFilter
in interface Filter
- Throws:
IOException
ServletException
destroy
public void destroy()
- Specified by:
destroy
in interface Filter
Copyright © 2012 NightLabs Consulting GmbH. All Rights Reserved.