Examples of IWebSocketSettings


Examples of org.apache.wicket.protocol.ws.IWebSocketSettings

    WicketFilter wicketFilter = application.getWicketFilter();
    this.webRequest = new WebSocketRequest(new ServletRequestCopy(request), getFilterPath(wicketFilter));

    this.application = Args.notNull(application, "application");
    IWebSocketSettings webSocketSettings = IWebSocketSettings.Holder.get(application);
    this.connectionRegistry = webSocketSettings.getConnectionRegistry();
  }
View Full Code Here

Examples of org.apache.wicket.protocol.ws.IWebSocketSettings

    this.pageId = Integer.parseInt(pageId, 10);

    this.webRequest = new WebSocketRequest(new ServletRequestCopy(request));

    this.application = Args.notNull(application, "application");
    IWebSocketSettings webSocketSettings = IWebSocketSettings.Holder.get(application);
    this.connectionRegistry = webSocketSettings.getConnectionRegistry();
  }
View Full Code Here

Examples of org.apache.wicket.protocol.ws.IWebSocketSettings

    this.baseUrl = Url.parse(baseUrl);

    this.webRequest = new WebSocketRequest(new ServletRequestCopy(request));

    this.application = Args.notNull(application, "application");
    IWebSocketSettings webSocketSettings = IWebSocketSettings.Holder.get(application);
    this.connectionRegistry = webSocketSettings.getConnectionRegistry();
  }
View Full Code Here

Examples of org.apache.wicket.protocol.ws.IWebSocketSettings

    WicketFilter wicketFilter = application.getWicketFilter();
    this.webRequest = new WebSocketRequest(new ServletRequestCopy(request), getFilterPath(wicketFilter));

    this.application = Args.notNull(application, "application");
    IWebSocketSettings webSocketSettings = IWebSocketSettings.Holder.get(application);
    this.connectionRegistry = webSocketSettings.getConnectionRegistry();
  }
View Full Code Here

Examples of org.apache.wicket.protocol.ws.IWebSocketSettings

  }

  private void process(final Application application, final Collection<IWebSocketConnection> wsConnections,
                       final IWebSocketPushMessage message)
  {
    IWebSocketSettings webSocketSettings = IWebSocketSettings.Holder.get(application);
    Executor executor = webSocketSettings.getWebSocketPushMessageExecutor();
    for (final IWebSocketConnection wsConnection : wsConnections)
    {
      executor.run(new Runnable()
      {
        @Override
View Full Code Here

Examples of org.apache.wicket.protocol.ws.IWebSocketSettings

    };
    tester.startPage(page);
    tester.getSession().bind();

    new WebSocketTester(tester, page);
    IWebSocketSettings webSocketSettings = IWebSocketSettings.Holder.get(tester.getApplication());
    WebSocketPushBroadcaster broadcaster = new WebSocketPushBroadcaster(webSocketSettings.getConnectionRegistry());
    ConnectedMessage wsMessage = new ConnectedMessage(tester.getApplication(),
        tester.getHttpSession().getId(), page.getPageId());
    broadcaster.broadcast(wsMessage, new BroadcastMessage(message));

    assertEquals(true, messageReceived.get());
View Full Code Here

Examples of org.apache.wicket.protocol.ws.IWebSocketSettings

    };
    tester.startPage(page);
    tester.getSession().bind();

    new WebSocketTester(tester, page);
    IWebSocketSettings webSocketSettings = IWebSocketSettings.Holder.get(tester.getApplication());
    WebSocketPushBroadcaster broadcaster = new WebSocketPushBroadcaster(webSocketSettings.getConnectionRegistry());
    ConnectedMessage wsMessage = new ConnectedMessage(tester.getApplication(),
        tester.getHttpSession().getId(), new PageIdKey(page.getPageId()));
    broadcaster.broadcast(wsMessage, new BroadcastMessage(message));

    assertEquals(true, messageReceived.get());
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.