public class RTEUtils extends Object
| Constructor and Description |
|---|
RTEUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createFilteredJSONResponse(SlingHttpServletRequest request,
SlingHttpServletResponse response,
String propertyName,
XSSAPI xssApi,
boolean filterXSS)
Create a JSON response containing XSS filtered JSON of a resource.
|
public static void createFilteredJSONResponse(SlingHttpServletRequest request, SlingHttpServletResponse response, String propertyName, XSSAPI xssApi, boolean filterXSS) throws JSONException, IOException
request - The Sling requestpropertyName - The name of the property to filterxssApi - A reference to the XSSAPI to usefilterXSS - Whether or not to enable the XSS filterJSONExceptionIOExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved