Class DefaultHttpBlocklistManager
java.lang.Object
io.camunda.connector.http.base.blocklist.DefaultHttpBlocklistManager
- All Implemented Interfaces:
HttpBlockListManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidateUrlAgainstBlocklist(com.google.api.client.http.GenericUrl url) Validates the given URL against a blocklist.
-
Constructor Details
-
DefaultHttpBlocklistManager
public DefaultHttpBlocklistManager() -
DefaultHttpBlocklistManager
-
-
Method Details
-
validateUrlAgainstBlocklist
public void validateUrlAgainstBlocklist(com.google.api.client.http.GenericUrl url) 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, encapsulated as aGenericUrl.
-
getBlockList
-