Class DefaultHttpBlocklistManager

java.lang.Object
io.camunda.connector.http.base.blocklist.DefaultHttpBlocklistManager
All Implemented Interfaces:
HttpBlockListManager

public class DefaultHttpBlocklistManager extends Object implements HttpBlockListManager
  • Constructor Details

    • DefaultHttpBlocklistManager

      public DefaultHttpBlocklistManager()
    • DefaultHttpBlocklistManager

      public DefaultHttpBlocklistManager(Map<String,String> environment)
  • Method Details

    • validateUrlAgainstBlocklist

      public void validateUrlAgainstBlocklist(String url)
      Description copied from interface: HttpBlockListManager
      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.*
       
      Specified by:
      validateUrlAgainstBlocklist in interface HttpBlockListManager
      Parameters:
      url - The URL to validate.
    • getBlockList

      public List<Block> getBlockList()