Interface HttpBlockListManager

All Known Implementing Classes:
DefaultHttpBlocklistManager

public interface HttpBlockListManager
This interface defines the contract for an HTTP Blocklist Manager. Implementing classes should provide logic for validating a URL against a set of blocklist criteria.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Validates the given URL against a blocklist.
  • Method Details

    • validateUrlAgainstBlocklist

      void validateUrlAgainstBlocklist(String url)
      Validates the given URL against a blocklist. Implementing classes should define what being "blocked" means (e.g., blocked domains, url, regex patterns, etc.)

      Configuration Example:

      
       // Set these environment variables to configure the blocklist
       CAMUNDA_CONNECTOR_HTTP_BLOCK_URL_BadUrl=http://bad.url
       CAMUNDA_CONNECTOR_HTTP_BLOCK_PORT_BadPort=8080,8081,8082
       CAMUNDA_CONNECTOR_HTTP_BLOCK_REGEX_BadPattern=.*badpattern.*
       
      Parameters:
      url - The URL to validate.
      Throws:
      ConnectorInputException - if the URL is found to be in the blocklist.