@InterfaceAudience.Public @InterfaceStability.Evolving public class XFrameOptionsFilter extends Object implements javax.servlet.Filter
| Modifier and Type | Class and Description |
|---|---|
class |
XFrameOptionsFilter.XFrameOptionsResponseWrapper
This wrapper allows the rest of the filter pipeline to
see the configured value when interrogating the response.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
CUSTOM_HEADER_PARAM |
static String |
X_FRAME_OPTIONS |
| Constructor and Description |
|---|
XFrameOptionsFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain) |
static Map<String,String> |
getFilterParams(Configuration conf,
String confPrefix)
Constructs a mapping of configuration properties to be used for filter
initialization.
|
void |
init(javax.servlet.FilterConfig config) |
public static final String X_FRAME_OPTIONS
public static final String CUSTOM_HEADER_PARAM
public void destroy()
destroy in interface javax.servlet.Filterpublic 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 init(javax.servlet.FilterConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionpublic static Map<String,String> getFilterParams(Configuration conf, String confPrefix)
conf - configuration to readconfPrefix - configuration prefixCopyright © 2022 Apache Software Foundation. All rights reserved.