Package org.apache.wicket.protocol.http

Examples of org.apache.wicket.protocol.http.WebSession


  {
    String to = parameters.get("cto").toString();
    setContinueTo(to);
    initComps();
    RequestCycle requestCycle = getRequestCycle();
    WebSession session = (WebSession)getSession();
    ClientInfo clientInfo = session.getClientInfo();
    if (clientInfo == null)
    {
      clientInfo = new WebClientInfo(requestCycle);
      getSession().setClientInfo(clientInfo);
    }
View Full Code Here


    tester = new WicketTester(new MockApplication()
    {
      @Override
      public Session newSession(Request request, Response response)
      {
        return new WebSession(request)
        {
          private static final long serialVersionUID = 1L;

          @Override
          public IAuthorizationStrategy getAuthorizationStrategy()
View Full Code Here

      throw new IllegalArgumentException("parameter cto must be provided!");
    }
    setContinueTo(to);
    initComps();
    WebRequestCycle requestCycle = (WebRequestCycle)getRequestCycle();
    WebSession session = (WebSession)getSession();
    ClientInfo clientInfo = session.getClientInfo();
    if (clientInfo == null)
    {
      clientInfo = new WebClientInfo(requestCycle);
      getSession().setClientInfo(clientInfo);
    }
View Full Code Here

       * @see org.apache.wicket.protocol.http.WebApplication#newSession(Request, Response)
       */
      @Override
      public Session newSession(Request request, Response response)
      {
        return new WebSession(request).setStyle("myStyle");
      }

      @Override
      public Class<? extends Page> getHomePage()
      {
View Full Code Here

      protected void onSubmit()
      {
        ClientPropertiesBean propertiesBean = getModelObject();

        WebRequestCycle requestCycle = (WebRequestCycle)getRequestCycle();
        WebSession session = (WebSession)getSession();
        ClientInfo clientInfo = session.getClientInfo();

        if (clientInfo == null)
        {
          clientInfo = new WebClientInfo(requestCycle);
          getSession().setClientInfo(clientInfo);
View Full Code Here

      ThreadContext.setApplication(app);

      app.setName(getClass().getName());
      app.initApplication();

      Session session = new WebSession(new MockWebRequest(Url.parse("/")));
      app.getSessionStore().bind(null, session);
      ThreadContext.setSession(session);

      GuiceComponentInjector injector = new GuiceComponentInjector(app, new Module()
      {
View Full Code Here

      ThreadContext.setApplication(app);

      app.setName(getClass().getName());
      app.initApplication();

      Session session = new WebSession(new MockWebRequest(Url.parse("/")));
      app.getSessionStore().bind(null, session);
      ThreadContext.setSession(session);

      GuiceComponentInjector injector = new GuiceComponentInjector(app, new Module()
      {
View Full Code Here

      protected void onSubmit()
      {
        ClientPropertiesBean propertiesBean = getModelObject();

        RequestCycle requestCycle = getRequestCycle();
        WebSession session = (WebSession)getSession();
        WebClientInfo clientInfo = session.getClientInfo();

        if (clientInfo == null)
        {
          clientInfo = new WebClientInfo(requestCycle);
          getSession().setClientInfo(clientInfo);
View Full Code Here

   */
  public BrowserInfoPage()
  {
    initComps();
    RequestCycle requestCycle = getRequestCycle();
    WebSession session = (WebSession)getSession();
    WebClientInfo clientInfo = session.getClientInfo();
    if (clientInfo == null)
    {
      clientInfo = new WebClientInfo(requestCycle);
      getSession().setClientInfo(clientInfo);
    }
View Full Code Here

      ThreadContext.setApplication(app);

      app.setName(getClass().getName());
      app.initApplication();

      Session session = new WebSession(new MockWebRequest(Url.parse("/")));
      app.getSessionStore().bind(null, session);
      ThreadContext.setSession(session);

      GuiceComponentInjector injector = new GuiceComponentInjector(app, new Module()
      {
View Full Code Here

TOP

Related Classes of org.apache.wicket.protocol.http.WebSession

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.