Package com.hazelcast.config
Class JavaSerializationFilterConfig
java.lang.Object
com.hazelcast.config.JavaSerializationFilterConfig
Configuration for Serialization Filters and Reflection Filters.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty Java serialization filter configuration.JavaSerializationFilterConfig(JavaSerializationFilterConfig javaSerializationFilterConfig) Creates a new Java serialization filter configuration by copying the given configuration. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the blacklist filter.Returns the whitelist filter.inthashCode()booleanReturns whether the default serialization filters are disabled.setBlacklist(ClassFilter blackList) Sets the blacklist filter.setDefaultsDisabled(boolean defaultsDisabled) Sets whether the default serialization filters are disabled.setWhitelist(ClassFilter whiteList) Sets the whitelist filter.toString()
-
Constructor Details
-
JavaSerializationFilterConfig
public JavaSerializationFilterConfig()Creates an empty Java serialization filter configuration. -
JavaSerializationFilterConfig
Creates a new Java serialization filter configuration by copying the given configuration.- Parameters:
javaSerializationFilterConfig- the configuration to copy from
-
-
Method Details
-
getBlacklist
Returns the blacklist filter. If not set, it sets and returns an empty filter.- Returns:
- the blacklist filter
-
setBlacklist
Sets the blacklist filter.- Parameters:
blackList- the blacklist filter to set- Returns:
- this configuration
-
getWhitelist
Returns the whitelist filter. If not set, it sets and returns an empty filter.- Returns:
- the whitelist filter
-
setWhitelist
Sets the whitelist filter.- Parameters:
whiteList- the whitelist filter to set- Returns:
- this configuration
-
isDefaultsDisabled
public boolean isDefaultsDisabled()Returns whether the default serialization filters are disabled.- Returns:
trueif defaults are disabled,falseotherwise
-
setDefaultsDisabled
Sets whether the default serialization filters are disabled.- Parameters:
defaultsDisabled-trueto disable defaults,falseotherwise- Returns:
- this configuration
-
hashCode
public int hashCode() -
equals
-
toString
-