Package org.apache.wicket.protocol.http.pagestore.AbstractPageStore

Examples of org.apache.wicket.protocol.http.pagestore.AbstractPageStore.SerializedPage


    if (isSynchronous())
    {
      for (Iterator i = pages.iterator(); i.hasNext();)
      {
        SerializedPage serializedPage = (SerializedPage)i.next();
        entry.savePage(serializedPage);
      }
    }
    else
    {
View Full Code Here


    if (list != null)
    {
      for (Iterator i = list.iterator(); i.hasNext();)
      {
        try {
          SerializedPage page = (SerializedPage)i.next();
          getSessionEntry(sessionId, true).savePage(page);
        } catch (Exception e) {
          // We have to catch the exception here to process the other entries,
          // otherwise there would be a big memory leak
          log.error("Error flushing page", e);
View Full Code Here

  private SerializedPageWithSession stripSerializedPage(SerializedPageWithSession page)
  {
    List<SerializedPage> pages = new ArrayList<SerializedPage>(page.pages.size());
    for (Iterator i = page.pages.iterator(); i.hasNext();)
    {
      SerializedPage sp = (SerializedPage)i.next();
      pages.add(new SerializedPage(sp.getPageId(), sp.getPageMapName(),
        sp.getVersionNumber(), sp.getAjaxVersionNumber(), null));
    }
    return new SerializedPageWithSession(page.sessionId, page.pageId, page.pageMapName,
      page.versionNumber, page.ajaxVersionNumber, pages);
  }
View Full Code Here

  private SerializedPageWithSession restoreStrippedSerializedPage(SerializedPageWithSession page)
  {
    List<SerializedPage> pages = new ArrayList<SerializedPage>(page.pages.size());
    for (Iterator i = page.pages.iterator(); i.hasNext();)
    {
      SerializedPage sp = (SerializedPage)i.next();
      byte data[] = getPageData(page.sessionId, sp.getPageId(), sp.getPageMapName(),
        sp.getVersionNumber(), sp.getAjaxVersionNumber());

      pages.add(new SerializedPage(sp.getPageId(), sp.getPageMapName(),
        sp.getVersionNumber(), sp.getAjaxVersionNumber(), data));
    }

    return new SerializedPageWithSession(page.sessionId, page.pageId, page.pageMapName,
      page.versionNumber, page.ajaxVersionNumber, pages);
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.protocol.http.pagestore.AbstractPageStore.SerializedPage

Copyright © 2018 www.massapicom. 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.