Class PackageUrlValidator


  • public class PackageUrlValidator
    extends java.lang.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 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
      boolean isValidPackageUrl​(org.apache.pulsar.functions.proto.Function.FunctionDetails.ComponentType componentType, java.lang.String functionPkgUrl)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PackageUrlValidator

        public PackageUrlValidator​(org.apache.pulsar.functions.worker.WorkerConfig workerConfig)
    • Method Detail

      • isValidPackageUrl

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