Examples of ISocketEventSource


Examples of org.eclipse.ecf.filetransfer.events.socket.ISocketEventSource

    }
  }

  public static TrackSocketEvents observeSocketEvents(
      IFileTransferConnectStartEvent event) {
    ISocketEventSource socketSource = (ISocketEventSource) event
        .getAdapter(ISocketEventSource.class);
    return new TrackSocketEvents(socketSource);
  }
View Full Code Here

Examples of org.eclipse.ecf.filetransfer.events.socket.ISocketEventSource

      Assert.assertTrue(socketEvents.size() > 0);
      ISocketEvent socketEvent = (ISocketEvent) socketEvents.remove(0);
      Assert.assertTrue(socketEvent.toString(),
          socketEvent instanceof ISocketCreatedEvent);
      ISocketCreatedEvent createdEvent = (ISocketCreatedEvent) socketEvent;
      ISocketEventSource source = createdEvent.getSource();
      Assert.assertNotNull(source.toString(), source);
      Object primary = canAdaptTo(source);
      Socket createdSocket = createdEvent.getSocket();
      Assert.assertNotNull(primary.toString(), createdSocket);

      Assert.assertTrue(socketEvents.size() > 0);
View Full Code Here

Examples of org.eclipse.ecf.filetransfer.events.socket.ISocketEventSource

   * (org.eclipse.ecf.filetransfer.events.IFileTransferConnectStartEvent)
   */
  protected void handleStartConnectEvent(IFileTransferConnectStartEvent event) {
    super.handleStartConnectEvent(event);
    this.socketEvents = SocketEventTestUtil.observeSocketEvents(event);
    ISocketEventSource source = (ISocketEventSource) event
        .getAdapter(ISocketEventSource.class);
    source.addListener(new ISocketListener() {

      public void handleSocketEvent(ISocketEvent event) {
        if (event instanceof ISocketConnectedEvent) {
          ISocketConnectedEvent connectedEvent = (ISocketConnectedEvent) event;
          socketInReadWrapper = new SocketInReadWrapper(
View Full Code Here

Examples of org.eclipse.ecf.filetransfer.events.socket.ISocketEventSource

    }
  }

  private HostConfiguration getHostConfiguration() {
    if (hostConfigHelper == null) {
      ISocketEventSource source = (ISocketEventSource) job.getRequest().getAdapter(ISocketEventSource.class);
      hostConfigHelper = new HostConfigHelper(source, connectingSockets);
    }
    return hostConfigHelper.getHostConfiguration();
  }
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.