Interface CrowdHttpValidationFactorExtractor

All Known Implementing Classes:
CrowdHttpValidationFactorExtractorImpl

public interface CrowdHttpValidationFactorExtractor
Classes which extracts validation factors from a request object should implement this interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    getValidationFactors(javax.servlet.http.HttpServletRequest request)
    Retrieves validation factors from the request: Remote Address: the source IP address of the HTTP request. Original Address: the X-Forwarded-For HTTP header (if present and distinct from the Remote Address).
  • Method Details

    • getValidationFactors

      List<ValidationFactor> getValidationFactors(javax.servlet.http.HttpServletRequest request)
      Retrieves validation factors from the request:
      1. Remote Address: the source IP address of the HTTP request.
      2. Original Address: the X-Forwarded-For HTTP header (if present and distinct from the Remote Address).
      Parameters:
      request - HttpServletRequest.
      Returns:
      array of validation factors.