net.i2p.i2ptunnel

## Class RequestValidator.ValidationResult

- java.lang.Object
- - net.i2p.i2ptunnel.RequestValidator.ValidationResult

- Enclosing class:
    RequestValidator

      public static class RequestValidator.ValidationResult
      extends 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 Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `String` | `errorResponse` The error response to send if the request is invalid; null if no response needed
    `boolean` | `isPossibleExploit` Whether this appears to be an exploit attempt
    `boolean` | `isValid` Whether the request is valid

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ValidationResult()`

  - ### Method Summary

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### errorResponse

          public String errorResponse

      The error response to send if the request is invalid; null if no response needed

    - #### isPossibleExploit

          public boolean isPossibleExploit

      Whether this appears to be an exploit attempt

    - #### isValid

          public boolean isValid

      Whether the request is valid

  - ### Constructor Detail

    - #### ValidationResult

          public ValidationResult()