- getAdapter(Object, Class<AdapterType>) - Method in class org.apache.sling.xss.impl.XSSAPIAdapterFactory
-
- getAntiSamy() - Method in class org.apache.sling.xss.impl.PolicyHandler
-
- getName() - Method in enum org.apache.sling.xss.ProtectionContext
-
Gets the name of the protection context.
- getPolicy() - Method in class org.apache.sling.xss.impl.PolicyHandler
-
- getRequestSpecificAPI(SlingHttpServletRequest) - Method in class org.apache.sling.xss.impl.XSSAPIImpl
-
- getRequestSpecificAPI(SlingHttpServletRequest) - Method in interface org.apache.sling.xss.XSSAPI
-
Deprecated.
- getResourceResolverSpecificAPI(ResourceResolver) - Method in class org.apache.sling.xss.impl.XSSAPIImpl
-
- getResourceResolverSpecificAPI(ResourceResolver) - Method in interface org.apache.sling.xss.XSSAPI
-
Deprecated.
- getValidCSSColor(String, String) - Method in class org.apache.sling.xss.impl.XSSAPIImpl
-
- getValidCSSColor(String, String) - Method in interface org.apache.sling.xss.XSSAPI
-
Validate a CSS color value.
- getValidDimension(String, String) - Method in class org.apache.sling.xss.impl.XSSAPIImpl
-
- getValidDimension(String, String) - Method in interface org.apache.sling.xss.XSSAPI
-
Validate a string which should contain a dimension, returning a default value if the source is
empty, can't be parsed, or contains XSS risks.
- getValidDouble(String, double) - Method in class org.apache.sling.xss.impl.XSSAPIImpl
-
- getValidDouble(String, double) - Method in interface org.apache.sling.xss.XSSAPI
-
Validate a string which should contain an double, returning a default value if the source is
null
, empty, can't be parsed, or contains XSS risks.
- getValidHref(String) - Method in class org.apache.sling.xss.impl.XSSAPIImpl
-
- getValidHref(String) - Method in interface org.apache.sling.xss.XSSAPI
-
Sanitizes a URL for writing as an HTML href or src attribute value.
- getValidInteger(String, int) - Method in class org.apache.sling.xss.impl.XSSAPIImpl
-
- getValidInteger(String, int) - Method in interface org.apache.sling.xss.XSSAPI
-
Validate a string which should contain an integer, returning a default value if the source is
null
, empty, can't be parsed, or contains XSS risks.
- getValidJSON(String, String) - Method in class org.apache.sling.xss.impl.XSSAPIImpl
-
- getValidJSON(String, String) - Method in interface org.apache.sling.xss.XSSAPI
-
Validate a JSON string
- getValidJSToken(String, String) - Method in class org.apache.sling.xss.impl.XSSAPIImpl
-
- getValidJSToken(String, String) - Method in interface org.apache.sling.xss.XSSAPI
-
Validate a Javascript token.
- getValidLong(String, long) - Method in class org.apache.sling.xss.impl.XSSAPIImpl
-
- getValidLong(String, long) - Method in interface org.apache.sling.xss.XSSAPI
-
Validate a string which should contain a long, returning a default value if the source is
null
, empty, can't be parsed, or contains XSS risks.
- getValidMultiLineComment(String, String) - Method in class org.apache.sling.xss.impl.XSSAPIImpl
-
- getValidMultiLineComment(String, String) - Method in interface org.apache.sling.xss.XSSAPI
-
Validate multi-line comment to be used inside a <script>...</script> or <style>...</style> block.
- getValidStyleToken(String, String) - Method in class org.apache.sling.xss.impl.XSSAPIImpl
-
- getValidStyleToken(String, String) - Method in interface org.apache.sling.xss.XSSAPI
-
Validate a style/CSS token.
- getValidXML(String, String) - Method in class org.apache.sling.xss.impl.XSSAPIImpl
-
- getValidXML(String, String) - Method in interface org.apache.sling.xss.XSSAPI
-
Validate an XML string