Package freenet.clients.http.wizardsteps

Examples of freenet.clients.http.wizardsteps.PersistFields.appendTo()


    //Skip the browser warning page if using Chrome in incognito mode
    if (currentStep == WIZARD_STEP.BROWSER_WARNING &&
        request.isChrome() && request.isIncognito()) {
      super.writeTemporaryRedirect(ctx, "Skipping unneeded warning",
              persistFields.appendTo(TOADLET_URL+"?step=MISC"));
      return;
    } else if (currentStep == WIZARD_STEP.MISC && persistFields.isUsingPreset()) {
      /*If using a preset, skip the miscellaneous page as both high and low security set those settings.
       * This overrides the persistence fields.*/
      StringBuilder redirectBase = new StringBuilder(TOADLET_URL+"?step=");
View Full Code Here


      super.writeTemporaryRedirect(ctx, "Skipping to next necessary step", redirectBase.toString());
      return;
    } else if (currentStep == WIZARD_STEP.SECURITY_NETWORK && !request.isParameterSet("opennet")) {
      //If opennet isn't defined when attempting to set network security level, ask again.
      super.writeTemporaryRedirect(ctx, "Need opennet choice",
              persistFields.appendTo(TOADLET_URL+"?step=OPENNET"));
      return;
    } else if (currentStep == WIZARD_STEP.NAME_SELECTION && core.node.isOpennetEnabled()) {
      //Skip node name selection if not in darknet mode.
      super.writeTemporaryRedirect(ctx, "Skip name selection",
              persistFields.appendTo(stepURL(WIZARD_STEP.DATASTORE_SIZE.name())));
View Full Code Here

              persistFields.appendTo(TOADLET_URL+"?step=OPENNET"));
      return;
    } else if (currentStep == WIZARD_STEP.NAME_SELECTION && core.node.isOpennetEnabled()) {
      //Skip node name selection if not in darknet mode.
      super.writeTemporaryRedirect(ctx, "Skip name selection",
              persistFields.appendTo(stepURL(WIZARD_STEP.DATASTORE_SIZE.name())));
      return;
    } else if (currentStep == WIZARD_STEP.COMPLETE) {
      super.writeTemporaryRedirect(ctx, "Wizard complete", WelcomeToadlet.PATH);
      return;
    }
View Full Code Here

        msg.append("</body></html>");
        writeHTMLReply(ctx, 500, "Internal Error", msg.toString());
        return;
      }
    }
    super.writeTemporaryRedirect(ctx, "Wizard redirect", stepURL(persistFields.appendTo(redirectTarget)));
  }

  private String stepURL(String step) {
    return TOADLET_URL+"?step="+step;
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.