Class PackageUrlValidator

java.lang.Object
org.apache.pulsar.functions.worker.PackageUrlValidator

public class PackageUrlValidator extends Object
Validates package URLs for functions and connectors. Validates that the package URL is either a file in the connectors or functions directory when referencing connector or function files is enabled, or matches one of the additional url patterns.
  • Constructor Details

    • PackageUrlValidator

      public PackageUrlValidator(WorkerConfig workerConfig)
  • Method Details

    • isValidPackageUrl

      public boolean isValidPackageUrl(org.apache.pulsar.functions.proto.Function.FunctionDetails.ComponentType componentType, String functionPkgUrl)