Class XSSRequestParameterProcessingResponse


  • public class XSSRequestParameterProcessingResponse
    extends Object
    A response object returned from the XSSRequestProcessingService after processing a request parameter and its value(s).
    Author:
    Samarth Dhruva (samarthd)
    • Constructor Detail

      • XSSRequestParameterProcessingResponse

        public XSSRequestParameterProcessingResponse()
    • Method Detail

      • getPerformedOperationType

        public String getPerformedOperationType()
        Reports the type of operation that was performed on the input.
      • getSanitizedParameterName

        @Nullable
        public String getSanitizedParameterName()
        The request parameter name after sanitization. This should be set either in the case where sanitization was performed, or in the case where error 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 where sanitization 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)
        If validation 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 where sanitization was performed, or in the case where error 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 where sanitization was performed.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object