@InterfaceAudience.Public @InterfaceStability.Evolving public class XFrameOptionsFilter extends Object implements javax.servlet.Filter
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.Filter
public void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse res, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public static Map<String,String> getFilterParams(Configuration conf, String confPrefix)
conf
- configuration to readconfPrefix
- configuration prefixCopyright © 2024 Apache Software Foundation. All rights reserved.