Class RegistrarSettingsAction

  • All Implemented Interfaces:
    JsonActionRunner.JsonAction, java.lang.Runnable

    public class RegistrarSettingsAction
    extends java.lang.Object
    implements java.lang.Runnable, JsonActionRunner.JsonAction
    Admin servlet that allows creating or updating a registrar. Deletes are not allowed so as to preserve history.
    • Field Summary

      Modifier and Type Field Description
      static java.lang.String PATH  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> handleJsonRequest​(java.util.Map<java.lang.String,​?> input)
      Handles JSON HTTP request.
      static<RegistrarContact> readContacts​(Registrar registrar,<RegistrarContact> existingContacts, java.util.Map<java.lang.String,​?> args)
      Reads the contacts from the supplied args.
      void run()  
      • Methods inherited from class java.lang.Object

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

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • handleJsonRequest

        public java.util.Map<java.lang.String,​java.lang.Object> handleJsonRequest​(java.util.Map<java.lang.String,​?> input)
        Description copied from interface: JsonActionRunner.JsonAction
        Handles JSON HTTP request.
        Specified by:
        handleJsonRequest in interface JsonActionRunner.JsonAction
        input - object extracted from request body
        an arbitrary JSON object, which is never null
      • readContacts

        public static<RegistrarContact> readContacts​(Registrar registrar,
                                                                                  <RegistrarContact> existingContacts,
                                                                                            java.util.Map<java.lang.String,​?> args)
        Reads the contacts from the supplied args.