Package org.apache.wicket.protocol.http

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


    Session.get().info("I'm the application and I received an event.");
  }
 
  @Override
  public Session newSession(Request request, Response response) {
    return new WebSession(request){
      @Override
      public void onEvent(IEvent<?> event) {
        Session.get().info("I'm the session and I received an event.");
      }
    };
View Full Code Here


  {
    String to = Strings.toString(parameters.get("cto"));
    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

    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

      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

   *      org.apache.wicket.request.Response)
   */
  @Override
  public Session newSession(Request request, Response response)
  {
    WebSession session = new WebSession(request);
    Locale locale = session.getLocale();
    if (!LOCALES.contains(locale))
    {
      session.setLocale(Locale.ENGLISH);
    }
    return session;
  }
View Full Code Here

  {
    String to = Strings.toString(parameters.get("cto"));
    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

    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

      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.