public class XSSSupport extends Object
Note that this class is an OSGi component only to make sure it can get a reference to the
XSSAPI correctly. Its usage is intended to be only within this bundle. For all other usages,
directly accessing the XSSAPI service is strongly recommended.
| Modifier and Type | Class and Description |
|---|---|
static class |
XSSSupport.EncodingMode
The encoding modes supported by this tag.
|
| Constructor and Description |
|---|
XSSSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate() |
protected void |
deactivate() |
static String |
encode(String unencoded,
XSSSupport.EncodingMode mode)
Encodes the unencoded string using the specified mode.
|
static XSSSupport.EncodingMode |
getEncodingMode(String modeStr)
Retrieves the encoding mode associated with the specified string.
|
protected void activate()
protected void deactivate()
public static String encode(String unencoded, XSSSupport.EncodingMode mode)
unencoded - the unencoded stringmode - the mode with which to encode the stringpublic static XSSSupport.EncodingMode getEncodingMode(String modeStr)
modeStr - the mode stringCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.