Class ServiceNameValidator


  • @Beta
    public class ServiceNameValidator
    extends Object
    Each service and each version must have a name. A name can contain numbers, letters, and hyphens. It cannot be longer than 63 characters and cannot start or end with a hyphen."
    • Constructor Detail

      • ServiceNameValidator

        public ServiceNameValidator()
    • Method Detail

      • validate

        public static boolean validate​(@Nullable
                                       String name)
        Validates an App Engine service name.
        Parameters:
        name - App Engine service (a.k.a. module) name
        Returns:
        true if and only if the name meets the constraints for service names; false otherwise