Class HostRestrictingAuthorizationFilter
java.lang.Object
org.apache.hadoop.hdfs.server.common.HostRestrictingAuthorizationFilter
- All Implemented Interfaces:
javax.servlet.Filter
An HTTP filter that can filter requests based on Hosts.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()voiddoFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain filterChain) getFilterParams(org.apache.hadoop.conf.Configuration conf, String confPrefix) voidvoidinit(javax.servlet.FilterConfig config)
-
Field Details
-
HDFS_CONFIG_PREFIX
- See Also:
-
RESTRICTION_CONFIG
- See Also:
-
RESTRICTED_OPERATIONS
-
-
Constructor Details
-
HostRestrictingAuthorizationFilter
public HostRestrictingAuthorizationFilter()
-
-
Method Details
-
getFilterParams
-
destroy
public void destroy()- Specified by:
destroyin interfacejavax.servlet.Filter
-
init
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException - Specified by:
initin interfacejavax.servlet.Filter- Throws:
javax.servlet.ServletException
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException - Specified by:
doFilterin interfacejavax.servlet.Filter- Throws:
IOExceptionjavax.servlet.ServletException
-
handleInteraction
public void handleInteraction(HostRestrictingAuthorizationFilter.HttpInteraction interaction) throws IOException, javax.servlet.ServletException - Throws:
IOExceptionjavax.servlet.ServletException
-