Examples of ISessionStore


Examples of org.apache.wicket.session.ISessionStore

      {
        throw new IllegalStateException(
          "Cannot set the attribute: no RequestCycle available.  If you get this error when using WicketTester.startPage(Page), make sure to call WicketTester.createRequestCycle() beforehand.");
      }

      ISessionStore store = getSessionStore();
      Request request = cycle.getRequest();

      // extra check on session binding event
      if (value == this)
      {
        Object current = store.getAttribute(request, name);
        if (current == null)
        {
          String id = store.getSessionId(request, false);
          if (id != null)
          {
            // this is a new instance. wherever it came from, bind
            // the session now
            store.bind(request, (Session)value);
          }
        }
      }

      // Set the actual attribute
      store.setAttribute(request, name, value);
    }
    else
    {
      // we don't have to synchronize, as it is impossible a temporary
      // session instance gets shared across threads
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.