@InterfaceAudience.Public public class AmIpFilter extends Object implements javax.servlet.Filter
| Modifier and Type | Field and Description |
|---|---|
static String |
PROXY_HOST
Deprecated.
|
static String |
PROXY_HOSTS |
static String |
PROXY_HOSTS_DELIMITER |
static String |
PROXY_URI_BASE
Deprecated.
|
static String |
PROXY_URI_BASES |
static String |
PROXY_URI_BASES_DELIMITER |
| Constructor and Description |
|---|
AmIpFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse resp,
javax.servlet.FilterChain chain) |
String |
findRedirectUrl() |
protected Set<String> |
getProxyAddresses() |
void |
init(javax.servlet.FilterConfig conf) |
boolean |
isValidUrl(String url) |
protected static void |
setUpdateInterval(long updateInterval) |
@Deprecated public static final String PROXY_HOST
@Deprecated public static final String PROXY_URI_BASE
public static final String PROXY_HOSTS
public static final String PROXY_HOSTS_DELIMITER
public static final String PROXY_URI_BASES
public static final String PROXY_URI_BASES_DELIMITER
public void init(javax.servlet.FilterConfig conf)
throws javax.servlet.ServletException
init in interface javax.servlet.Filterjavax.servlet.ServletExceptionprotected Set<String> getProxyAddresses() throws javax.servlet.ServletException
javax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.Filterpublic void doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse resp,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOExceptionjavax.servlet.ServletException@VisibleForTesting public String findRedirectUrl() throws javax.servlet.ServletException
javax.servlet.ServletException@VisibleForTesting public boolean isValidUrl(String url)
@VisibleForTesting protected static void setUpdateInterval(long updateInterval)
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.