Class DefaultHttpBlocklistManager
java.lang.Object
io.camunda.connector.http.base.blocklist.DefaultHttpBlocklistManager
- All Implemented Interfaces:
HttpBlockListManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidValidates the given URL against a blocklist.
-
Constructor Details
-
DefaultHttpBlocklistManager
public DefaultHttpBlocklistManager() -
DefaultHttpBlocklistManager
-
-
Method Details
-
validateUrlAgainstBlocklist
Description copied from interface:HttpBlockListManagerValidates 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:
validateUrlAgainstBlocklistin interfaceHttpBlockListManager- Parameters:
url- The URL to validate.
-
getBlockList
-