@SafeHtml
support will be removed in a future version@Documented @Constraint(validatedBy={}) @Target(value={METHOD,FIELD,ANNOTATION_TYPE,CONSTRUCTOR,PARAMETER,TYPE_USE}) @Retention(value=RUNTIME) @Repeatable(value=SafeHtml.List.class) @Deprecated public @interface SafeHtml
Note that this constraint assumes you want to validate input which represents a body fragment of an HTML document. If
you instead want to validate input which represents a complete HTML document, add the html
, head
and
body
tags to the used whitelist as required.
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String[] |
additionalTags
Deprecated.
|
SafeHtml.Tag[] |
additionalTagsWithAttributes
Deprecated.
|
java.lang.String |
baseURI
Deprecated.
|
java.lang.Class<?>[] |
groups
Deprecated.
|
java.lang.String |
message
Deprecated.
|
java.lang.Class<? extends javax.validation.Payload>[] |
payload
Deprecated.
|
SafeHtml.WhiteListType |
whitelistType
Deprecated.
|
public abstract java.lang.String message
public abstract java.lang.Class<? extends javax.validation.Payload>[] payload
public abstract SafeHtml.WhiteListType whitelistType
public abstract java.lang.String[] additionalTags
whitelistType()
.public abstract SafeHtml.Tag[] additionalTagsWithAttributes
Copyright © 2007-2022 Red Hat, Inc. All Rights Reserved