Interface ConnectionValidationPolicyConfig
- All Superinterfaces:
Config
,ValidationPolicyConfig
Connection Validation Policy Configuration.
- Since:
- 4.4
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.pushtechnology.diffusion.api.config.ValidationPolicyConfig
ValidationPolicyConfig.Type
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isConnectionValid
(InetSocketAddress remoteAddress, Locale remoteLocale) Check to see if a remote address and locale are valid for this policy.boolean
isRemoteAddressValid
(String address) Check to see if the specified IP address is valid for the this policy.Methods inherited from interface com.pushtechnology.diffusion.api.config.ValidationPolicyConfig
addAddress, addHostName, addLocale, addResolvedName, getAddresses, getHostNames, getLocales, getName, getResolvedNames, getType, hasHostNames, hasLocales, hasResolvedNames, removeAddresses, removeHostNames, removeLocales, removeResolvedNames, setType, validate
-
Method Details
-
isConnectionValid
Check to see if a remote address and locale are valid for this policy.- Parameters:
remoteAddress
- The address of the incoming connectionremoteLocale
- The locale of the incoming connection or null if unknown.- Returns:
- true if the connection is valid, else false
-
isRemoteAddressValid
Check to see if the specified IP address is valid for the this policy.- Parameters:
address
- the address- Returns:
- true if valid, or false
-