Package google.registry.util
Class RegistrarUtils
java.lang.Object
google.registry.util.RegistrarUtils
Utilities for working with
Registrar
objects.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
normalizeRegistrarId
(String registrarId) Returns a normalized registrar ID by taking the input and making it lowercase and removing all characters that aren't alphanumeric or hyphens.static String
normalizeRegistrarName
(String name) Strip out anything that isn't a letter or digit, and lowercase.
-
Constructor Details
-
RegistrarUtils
public RegistrarUtils()
-
-
Method Details
-
normalizeRegistrarName
Strip out anything that isn't a letter or digit, and lowercase. -
normalizeRegistrarId
Returns a normalized registrar ID by taking the input and making it lowercase and removing all characters that aren't alphanumeric or hyphens. The normalized id should be unique in the database, and is suitable for use in email addresses.
-