code: @RequirePOST
      public synchronized void doConfigSubmit( StaplerRequest req, StaplerResponse rsp ) throws IOException, ServletException {
          JSONObject src = req.getSubmittedForm();
  
          String newName = src.getString("name"), redirect = ".";
          XmlFile oldFile = null;
          if(!name.equals(newName)) {
              Jenkins.checkGoodName(newName);
              oldFile = getConfigFile();
              // rename
              getParent().logRecorders.remove(name);
              this.name = newName;
              getParent().logRecorders.put(name,this);
              redirect = "../" + Util.rawEncode(newName) + '/';
          }
  
          List<Target> newTargets = req.bindJSONToList(Target.class, src.get("targets"));
          for (Target t : newTargets)
              t.enable();
          targets.replaceBy(newTargets);
  
          save();
          if (oldFile!=null) oldFile.delete();
          rsp.sendRedirect2(redirect);
      }
docs: Accepts submission from the configuration page.