org.apache.hadoop.yarn.server.webproxy.amfilter
Class AmIpFilter
java.lang.Object
org.apache.hadoop.yarn.server.webproxy.amfilter.AmIpFilter
- All Implemented Interfaces:
- javax.servlet.Filter
public class AmIpFilter
- extends Object
- implements javax.servlet.Filter
Method Summary |
void |
destroy()
|
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse resp,
javax.servlet.FilterChain chain)
|
protected Set<String> |
getProxyAddresses()
|
void |
init(javax.servlet.FilterConfig conf)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROXY_HOST
public static final String PROXY_HOST
- See Also:
- Constant Field Values
PROXY_URI_BASE
public static final String PROXY_URI_BASE
- See Also:
- Constant Field Values
AmIpFilter
public AmIpFilter()
init
public void init(javax.servlet.FilterConfig conf)
throws javax.servlet.ServletException
- Specified by:
init
in interface javax.servlet.Filter
- Throws:
javax.servlet.ServletException
getProxyAddresses
protected Set<String> getProxyAddresses()
throws javax.servlet.ServletException
- Throws:
javax.servlet.ServletException
destroy
public void destroy()
- Specified by:
destroy
in interface javax.servlet.Filter
doFilter
public void doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse resp,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
- Specified by:
doFilter
in interface javax.servlet.Filter
- Throws:
IOException
javax.servlet.ServletException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.