public enum PreDefinedContextType extends Enum<PreDefinedContextType>
ContextType
more can be defined anywhere and added.
Enum Constant and Description |
---|
FORM_DATA
For any standard form data
|
URL
protect URL injection and attacks via URL parameters
|
WYSIWYG_FLEXIBLE
Protect WYSIWYG editors from CSRF & XSS attacks; yet allow
flexibility in terms of a good range of tags and content types & styles to be supported.
|
WYSIWYG_STRICT
Protect WYSIWYG editors from CSRF & XSS attacks; only allows very few basic formatting tags.
|
Modifier and Type | Field and Description |
---|---|
static String |
ANTI_SAMY_URL
Very Strict, Absolutely no HTML or Scripting support.
|
static String |
ANTI_SAMY_WYSIWYG_FLEXIBLE
Allow a wider range
|
static String |
ANTI_SAMY_WYSIWYG_STRICT
Only allow basic tags
|
Modifier and Type | Method and Description |
---|---|
ContextType |
getContextType()
Get the
ContextType for this pre defined enum |
static PreDefinedContextType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PreDefinedContextType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PreDefinedContextType URL
public static final PreDefinedContextType WYSIWYG_FLEXIBLE
public static final PreDefinedContextType WYSIWYG_STRICT
public static final PreDefinedContextType FORM_DATA
public static final String ANTI_SAMY_URL
public static final String ANTI_SAMY_WYSIWYG_STRICT
public static final String ANTI_SAMY_WYSIWYG_FLEXIBLE
public static PreDefinedContextType[] values()
for (PreDefinedContextType c : PreDefinedContextType.values()) System.out.println(c);
public static PreDefinedContextType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic ContextType getContextType()
ContextType
for this pre defined enumCopyright © 2018. All rights reserved.