java.lang.Object
net.i2p.i2ptunnel.RequestValidator.ValidationResult
- Enclosing class:
RequestValidator
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
FieldsModifier and TypeFieldDescriptionThe error response to send if the request is invalid; null if no response needed.booleanWhether this appears to be an exploit attempt.booleanWhether the request is valid.Constructor Summary
ConstructorsConstructorDescriptionA result that starts valid, not flagged as an exploit, and carrying no error response; the validator overwrites whichever fields it needs to report.Method Summary
Field Details
isValid
public boolean isValidWhether the request is valid.isPossibleExploit
public boolean isPossibleExploitWhether this appears to be an exploit attempt.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.