Package com.emc.documentum.rest.config
Enum Class SanitizerConfig
- All Implemented Interfaces:
- Serializable,- Comparable<SanitizerConfig>,- Constable
The runtime configuration for sanitizer settings where the settings are loaded from
 the classpath resource 'rest-api-sanitizer-config.properties'.
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Method SummaryModifier and TypeMethodDescriptionThe default charset/encoding of the html content.booleanWhether sanitize the html contentbooleanWhether sanitize the object metadataintThe max html content size to be sanitized.The content format which need be sanitizedstatic SanitizerConfigReturns the enum constant of this class with the specified name.static SanitizerConfig[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
INSTANCEThe singleton instance ofSanitizerConfig
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
isSanitizeMetadatapublic boolean isSanitizeMetadata()Whether sanitize the object metadata- Returns:
- trueif the object metadata will be sanitized
 
- 
isSanitizeContentpublic boolean isSanitizeContent()Whether sanitize the html content- Returns:
- trueif the html content will be sanitized
 
- 
maxSanitizeContentSizepublic int maxSanitizeContentSize()The max html content size to be sanitized. If the content size is larger than it, the content will not be sanitized.- Returns:
- the max sanitize content size
 
- 
defaultSanitizeContentCharsetThe default charset/encoding of the html content.- Returns:
- the default charset
 
- 
sanitizeContentFormatThe content format which need be sanitized- Returns:
- the content format need be sanitized
 
 
-