Examples of SoneRescuer


Examples of net.pterodactylus.sone.core.SoneRescuer

   */
  @Override
  protected void processTemplate(FreenetRequest request, TemplateContext templateContext) throws RedirectException {
    super.processTemplate(request, templateContext);
    Sone currentSone = getCurrentSone(request.getToadletContext(), false);
    SoneRescuer soneRescuer = webInterface.getCore().getSoneRescuer(currentSone);
    if (request.getMethod() == Method.POST) {
      if ("true".equals(request.getHttpRequest().getPartAsStringFailsafe("fetch", 4))) {
        long edition = Numbers.safeParseLong(request.getHttpRequest().getPartAsStringFailsafe("edition", 8), -1L);
        if (edition > -1) {
          soneRescuer.setEdition(edition);
        }
        soneRescuer.startNextFetch();
      }
      throw new RedirectException("rescue.html");
    }
    templateContext.set("soneRescuer", soneRescuer);
  }
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.