Package org.eclipse.ecf.example.clients

Examples of org.eclipse.ecf.example.clients.XMPPChatClient.sendChat()


        : message;
    System.out.println("ECF chat robot example sending to targetAccount="
        + originalArgs[2] + " message=" + msgToSend);

    // Send chat message to targetID
    client.sendChat(targetID, msgToSend);

    // Get shared object container adapter
    ISharedObjectContainer socontainer = (ISharedObjectContainer) client
        .getContainer().getAdapter(ISharedObjectContainer.class);
    // Create and add shared object to container
View Full Code Here


    // Construct message
    String msgToSend = (message==null)?"Hi, I'm an ECF chat robot.":message;
    System.out.println("ECF chat robot example sending to targetAccount=" + originalArgs[2] + " message="+msgToSend);
   
    // Send message to targetID
    client.sendChat(targetID, msgToSend);

    // Close up nicely and return
    client.close();
    return IApplication.EXIT_OK;
  }
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.