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 Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe default charset/encoding of the html content.boolean
Whether sanitize the html contentboolean
Whether sanitize the object metadataint
The max html content size to be sanitized.The content format which need be sanitizedstatic SanitizerConfig
Returns 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
-
INSTANCE
The singleton instance ofSanitizerConfig
-
-
Method Details
-
values
Returns 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
-
valueOf
Returns 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 nameNullPointerException
- if the argument is null
-
isSanitizeMetadata
public boolean isSanitizeMetadata()Whether sanitize the object metadata- Returns:
true
if the object metadata will be sanitized
-
isSanitizeContent
public boolean isSanitizeContent()Whether sanitize the html content- Returns:
true
if the html content will be sanitized
-
maxSanitizeContentSize
public 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
-
defaultSanitizeContentCharset
The default charset/encoding of the html content.- Returns:
- the default charset
-
sanitizeContentFormat
The content format which need be sanitized- Returns:
- the content format need be sanitized
-