Class InetHostMatcher
java.lang.Object
org.mapfish.print.processor.http.matcher.AbstractMatcher
org.mapfish.print.processor.http.matcher.HostMatcher
org.mapfish.print.processor.http.matcher.InetHostMatcher
- All Implemented Interfaces:
ConfigurationObject
,URIMatcher
- Direct Known Subclasses:
AddressHostMatcher
,LocalHostMatcher
Allows to check that a given URL matches an IP address (numeric format).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
The ip addresses that are considered legal. -
Field Summary
Fields inherited from class org.mapfish.print.processor.http.matcher.HostMatcher
pathRegex, port
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
Reset the authorized IPs cache.protected abstract List<InetHostMatcher.AddressMask>
Get the full list of authorized IP addresses and the masks.boolean
int
hashCode()
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.Methods inherited from class org.mapfish.print.processor.http.matcher.HostMatcher
matches, setPathRegex, setPort, toString
Methods inherited from class org.mapfish.print.processor.http.matcher.AbstractMatcher
isReject, setReject
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.mapfish.print.config.ConfigurationObject
validate
-
Constructor Details
-
InetHostMatcher
public InetHostMatcher()
-
-
Method Details
-
tryOverrideValidation
protected final Optional<Boolean> tryOverrideValidation(MatchInfo matchInfo) throws UnknownHostException, SocketException Description copied from class:HostMatcher
If the subclass has its own checks or if it has a different validation method this method can return a valid value.- Specified by:
tryOverrideValidation
in classHostMatcher
- Parameters:
matchInfo
- the match information to validate.- Throws:
UnknownHostException
SocketException
-
createAuthorizedIPs
protected abstract List<InetHostMatcher.AddressMask> createAuthorizedIPs() throws UnknownHostException, SocketExceptionGet the full list of authorized IP addresses and the masks.- Throws:
UnknownHostException
SocketException
-
clearAuthorizedIPs
protected final void clearAuthorizedIPs()Reset the authorized IPs cache. -
hashCode
public int hashCode()- Overrides:
hashCode
in classHostMatcher
-
equals
- Overrides:
equals
in classHostMatcher
-