Package org.apache.wicket.protocol.ws

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


    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


    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

    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

    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

  }

  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

    };
    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

    };
    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

        catch (Exception e)
        {
            throw new CertificateParsingException(e.getMessage());
        }

        holder = new Holder(new IssuerSerial(generateGeneralNames(name),
            new ASN1Integer(cert.getSerialNumber())));
    }
View Full Code Here

            new ASN1Integer(cert.getSerialNumber())));
    }

    public AttributeCertificateHolder(X509Principal principal)
    {
        holder = new Holder(generateGeneralNames(principal));
    }
View Full Code Here

     * @param objectDigest The hash value.
     */
    public AttributeCertificateHolder(int digestedObjectType,
        String digestAlgorithm, String otherObjectTypeID, byte[] objectDigest)
    {
        holder = new Holder(new ObjectDigestInfo(digestedObjectType,
            new ASN1ObjectIdentifier(otherObjectTypeID), new AlgorithmIdentifier(digestAlgorithm), Arrays
                .clone(objectDigest)));
    }
View Full Code Here

TOP

Related Classes of org.apache.wicket.protocol.ws.IWebSocketSettings$Holder

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.