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 classThe 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 voidReset the authorized IPs cache.protected abstract List<InetHostMatcher.AddressMask> Get the full list of authorized IP addresses and the masks.booleaninthashCode()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, toStringMethods inherited from class org.mapfish.print.processor.http.matcher.AbstractMatcher
isReject, setRejectMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:HostMatcherIf the subclass has its own checks or if it has a different validation method this method can return a valid value.- Specified by:
tryOverrideValidationin classHostMatcher- Parameters:
matchInfo- the match information to validate.- Throws:
UnknownHostExceptionSocketException
-
createAuthorizedIPs
protected abstract List<InetHostMatcher.AddressMask> createAuthorizedIPs() throws UnknownHostException, SocketExceptionGet the full list of authorized IP addresses and the masks.- Throws:
UnknownHostExceptionSocketException
-
clearAuthorizedIPs
protected final void clearAuthorizedIPs()Reset the authorized IPs cache. -
hashCode
public int hashCode()- Overrides:
hashCodein classHostMatcher
-
equals
- Overrides:
equalsin classHostMatcher
-