public class CrossOriginFilter extends Object implements javax.servlet.Filter
| Modifier and Type | Field and Description |
|---|---|
static String |
ALLOWED_HEADERS |
static String |
ALLOWED_HEADERS_DEFAULT |
static String |
ALLOWED_METHODS |
static String |
ALLOWED_METHODS_DEFAULT |
static String |
ALLOWED_ORIGINS |
static String |
ALLOWED_ORIGINS_DEFAULT |
static String |
MAX_AGE |
static String |
MAX_AGE_DEFAULT |
| Constructor and Description |
|---|
CrossOriginFilter() |
public static final String ALLOWED_ORIGINS
public static final String ALLOWED_ORIGINS_DEFAULT
public static final String ALLOWED_METHODS
public static final String ALLOWED_METHODS_DEFAULT
public static final String ALLOWED_HEADERS
public static final String ALLOWED_HEADERS_DEFAULT
public static final String MAX_AGE
public static final String MAX_AGE_DEFAULT
public CrossOriginFilter()
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionpublic void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOExceptionjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.FilterCopyright © 2017 Apache Software Foundation. All Rights Reserved.