Class XSSRequestParameterProcessingResponse
java.lang.Object
com.broadleafcommerce.resource.security.xss.service.dto.XSSRequestParameterProcessingResponse
A response object returned from the
XSSRequestProcessingService after processing a
request parameter and its value(s).- Author:
- Samarth Dhruva (samarthd)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanReports the type of operation that was performed on the input.The request parameter name after sanitization.String[]The request parameter value(s) after sanitization.inthashCode()booleanisError()Ifvalidation was performed, this reports if an XSS violation was detected.voidsetError(boolean error) Ifvalidation was performed, this reports if an XSS violation was detected.voidsetPerformedOperationType(String performedOperationType) Reports the type of operation that was performed on the input.voidsetSanitizedParameterName(String sanitizedParameterName) The request parameter name after sanitization.voidsetSanitizedParameterValues(String[] sanitizedParameterValues) The request parameter value(s) after sanitization.toString()
-
Constructor Details
-
XSSRequestParameterProcessingResponse
public XSSRequestParameterProcessingResponse()
-
-
Method Details
-
getPerformedOperationType
Reports the type of operation that was performed on the input. -
isError
public boolean isError()Ifvalidation was performed, this reports if an XSS violation was detected. -
getSanitizedParameterName
The request parameter name after sanitization. This should be set either in the case wheresanitization was performed, or in the case whereerroris true (so the error message can use the sanitized name). -
getSanitizedParameterValues
The request parameter value(s) after sanitization. This should be set in the case wheresanitization was performed. -
setPerformedOperationType
Reports the type of operation that was performed on the input. -
setError
public void setError(boolean error) Ifvalidation was performed, this reports if an XSS violation was detected. -
setSanitizedParameterName
The request parameter name after sanitization. This should be set either in the case wheresanitization was performed, or in the case whereerroris true (so the error message can use the sanitized name). -
setSanitizedParameterValues
The request parameter value(s) after sanitization. This should be set in the case wheresanitization was performed. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-