Package freenet.support

Examples of freenet.support.HTMLNode.generate()


    if(!(count || keys)) {
      try {
        RequestStatus[] reqs = fcp.getGlobalRequests();
        MultiValueTable<String, String> pageHeaders = new MultiValueTable<String, String>();
        HTMLNode pageNode = handleGetInner(pageMaker, reqs, core.clientContext, request, ctx);
        writeHTMLReply(ctx, 200, "OK", pageHeaders, pageNode.generate());
        return;
      } catch (PersistenceDisabledException e) {
        sendPersistenceDisabledError(ctx);
        return;
      }
View Full Code Here


      }
    }

    MultiValueTable<String, String> pageHeaders = new MultiValueTable<String, String>();
    if(pageNode != null)
      writeHTMLReply(ctx, 200, "OK", pageHeaders, pageNode.generate());
    else if(plainText != null)
      this.writeReply(ctx, 200, "text/plain", "OK", plainText);
    else {
      if(core.killedDatabase())
        sendPersistenceDisabledError(ctx);
View Full Code Here

    ctx.sendReplyHeaders(302, "Found", headers, null, 0);
  }

  private void sendCantDeleteMasterKeysFile(ToadletContext ctx, String physicalSecurityLevel) throws ToadletContextClosedException, IOException {
    HTMLNode pageNode = sendCantDeleteMasterKeysFileInner(ctx, node.getMasterPasswordFile().getPath(), false, physicalSecurityLevel, this.node);
    writeHTMLReply(ctx, 200, "OK", pageNode.generate());
  }

  public static void sendCantDeleteMasterKeysFileInner(PageHelper helper, String filename, String physicalSecurityLevel) {
    HTMLNode contentNode = helper.getPageContent(l10nSec("cantDeletePasswordFileTitle"));
    HTMLNode content = helper.getInfobox("infobox-error",
View Full Code Here

    return NodeL10n.getBase().getString("SecurityLevels."+key, pattern, value);
  }

  void sendPasswordFileCorruptedPage(boolean tooBig, ToadletContext ctx, boolean forSecLevels, boolean forFirstTimeWizard) throws ToadletContextClosedException, IOException {
    HTMLNode page = sendPasswordFileCorruptedPageInner(tooBig, ctx, forSecLevels, forFirstTimeWizard, node.getMasterPasswordFile().getPath(), node);
    writeHTMLReply(ctx, 500, "Internal Server Error", page.generate());
  }

  public static void sendPasswordFileCorruptedPageInner(PageHelper helper, String masterPasswordFile) {
    HTMLNode contentNode = helper.getPageContent(l10nSec("passwordFileCorruptedTitle"));
    HTMLNode infoBox = helper.getInfobox("infobox-error",
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.