java.lang.Object
net.i2p.i2ptunnel.RequestValidator.ValidationResult
Enclosing class:
RequestValidator

public static class RequestValidator.ValidationResultextends Object
Encapsulates the result of hostname validation.

This inner class provides detailed information about whether a request is valid, if it appears to be an exploit attempt, and what error response should be sent.

  • Field Details

    • isValid

      public boolean isValid
      Whether the request is valid.
    • isPossibleExploit

      public boolean isPossibleExploit
      Whether this appears to be an exploit attempt.
    • errorResponse

      public String errorResponse
      The error response to send if the request is invalid; null if no response needed.
  • Constructor Details

    • ValidationResult

      public ValidationResult()
      A result that starts valid, not flagged as an exploit, and carrying no error response; the validator overwrites whichever fields it needs to report.