public abstract class InetHostMatcher extends HostMatcher
| Modifier and Type | Class and Description |
|---|---|
protected static class |
InetHostMatcher.AddressMask
The ip addresses that are considered legal.
|
pathRegex, port| Constructor and Description |
|---|
InetHostMatcher() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearAuthorizedIPs()
Reset the authorized IPs cache.
|
protected abstract java.util.List<InetHostMatcher.AddressMask> |
createAuthorizedIPs()
Get the full list of authorized IP addresses and the masks.
|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
protected com.google.common.base.Optional<java.lang.Boolean> |
tryOverrideValidation(MatchInfo matchInfo)
If the subclass has its own checks or if it has a different validation method this method can return a
valid value.
|
matches, setPathRegex, setPort, toStringisReject, setRejectclone, finalize, getClass, notify, notifyAll, wait, wait, waitvalidateprotected final com.google.common.base.Optional<java.lang.Boolean> tryOverrideValidation(MatchInfo matchInfo) throws java.net.UnknownHostException, java.net.SocketException
HostMatchertryOverrideValidation in class HostMatchermatchInfo - the match information to validate.java.net.UnknownHostExceptionjava.net.SocketExceptionprotected abstract java.util.List<InetHostMatcher.AddressMask> createAuthorizedIPs() throws java.net.UnknownHostException, java.net.SocketException
java.net.UnknownHostExceptionjava.net.SocketExceptionprotected final void clearAuthorizedIPs()
public int hashCode()
hashCode in class HostMatcherpublic boolean equals(java.lang.Object obj)
equals in class HostMatcher