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 |
ALLOWED_ORIGINS_REGEX_PREFIX |
static String |
MAX_AGE |
static String |
MAX_AGE_DEFAULT |
| Constructor and Description |
|---|
CrossOriginFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain) |
void |
init(javax.servlet.FilterConfig filterConfig) |
public static final String ALLOWED_ORIGINS
public static final String ALLOWED_ORIGINS_DEFAULT
public static final String ALLOWED_ORIGINS_REGEX_PREFIX
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 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 © 2008–2022 Apache Software Foundation. All rights reserved.