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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Reports the type of operation that was performed on the input.The request parameter name after sanitization.String[]
The request parameter value(s) after sanitization.int
hashCode()
boolean
isError()
Ifvalidation was performed
, this reports if an XSS violation was detected.void
setError
(boolean error) Ifvalidation was performed
, this reports if an XSS violation was detected.void
setPerformedOperationType
(String performedOperationType) Reports the type of operation that was performed on the input.void
setSanitizedParameterName
(String sanitizedParameterName) The request parameter name after sanitization.void
setSanitizedParameterValues
(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 whereerror
is 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 whereerror
is 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
-