Class PackageUrlValidator
- java.lang.Object
-
- org.apache.pulsar.functions.worker.PackageUrlValidator
-
public class PackageUrlValidator extends java.lang.ObjectValidates 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 Summary
Constructors Constructor Description PackageUrlValidator(org.apache.pulsar.functions.worker.WorkerConfig workerConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisValidPackageUrl(org.apache.pulsar.functions.proto.Function.FunctionDetails.ComponentType componentType, java.lang.String functionPkgUrl)
-