Class XSSRequestParameterProcessingResponse
- java.lang.Object
-
- com.broadleafcommerce.resource.security.xss.service.dto.XSSRequestParameterProcessingResponse
-
public class XSSRequestParameterProcessingResponse extends Object
A response object returned from theXSSRequestProcessingService
after processing a request parameter and its value(s).- Author:
- Samarth Dhruva (samarthd)
-
-
Constructor Summary
Constructors Constructor Description XSSRequestParameterProcessingResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getPerformedOperationType()
Reports the type of operation that was performed on the input.String
getSanitizedParameterName()
The request parameter name after sanitization.String[]
getSanitizedParameterValues()
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.String
toString()
-
-
-
Method Detail
-
getPerformedOperationType
public String 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
@Nullable public String 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
@Nullable public String[] getSanitizedParameterValues()
The request parameter value(s) after sanitization. This should be set in the case wheresanitization was performed
.
-
setPerformedOperationType
public void setPerformedOperationType(String performedOperationType)
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
public void setSanitizedParameterName(@Nullable String sanitizedParameterName)
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
public void setSanitizedParameterValues(@Nullable String[] sanitizedParameterValues)
The request parameter value(s) after sanitization. This should be set in the case wheresanitization was performed
.
-
canEqual
protected boolean canEqual(Object other)
-
-