Cumulus4j API
(1.2.0)

org.cumulus4j.keymanager.back.shared
Class AjaxHeadersFilter

java.lang.Object
  extended by 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

Constructor Summary
AjaxHeadersFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
           
 void init(FilterConfig filterConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxHeadersFilter

public AjaxHeadersFilter()
Method Detail

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

Cumulus4j API
(1.2.0)

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.