Class ExportPremiumTermsAction

java.lang.Object
google.registry.export.ExportPremiumTermsAction
All Implemented Interfaces:
Runnable

public class ExportPremiumTermsAction extends Object implements Runnable
Action that exports the premium terms list for a TLD to Google Drive.
  • Method Details

    • run

      public void run()
      Exports the premium terms for the TLD specified via the "tld" param to a file in the Google Drive folder configured for that TLD.

      The export file is named "CONFIDENTIAL_premium_terms.txt" and is encoded in UTF-8. It begins with the disclaimer text that is immediately followed by premium terms, each occupying a line. The file ends with a trailing newline.

      Each term is formatted as "term,price", where price is the ISO-4217 three-letter currency code followed by a space and then the numeric amount. For example:

       bank,USD 1599.00
       

      This servlet prints the ID of the file in GoogleDrive that was created/updated.

      Specified by:
      run in interface Runnable