public class RTEUtils
extends java.lang.Object
Constructor and Description |
---|
RTEUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
createFilteredJSONResponse(SlingHttpServletRequest request,
SlingHttpServletResponse response,
java.lang.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, java.lang.String propertyName, XSSAPI xssApi, boolean filterXSS) throws JSONException, java.io.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 filterJSONException
java.io.IOException
Copyright © 2010 - 2020 Adobe. All Rights Reserved