Package org.eclipse.ecf.core.security

Examples of org.eclipse.ecf.core.security.IConnectContext


        container.getConnectNamespace(), (String) target) : IDUtil
        .createID(container.getConnectNamespace(),
            new Object[] { target });
    Object context = properties
        .get(RemoteConstants.SERVICE_EXPORTED_CONTAINER_CONNECT_CONTEXT);
    IConnectContext connectContext = null;
    if (context != null) {
      connectContext = createConnectContext(serviceReference, properties,
          container, context);
    }
    // connect the container
View Full Code Here


        throw new ECFException("No chat room manager available"); //$NON-NLS-1$

      firePreConnect();

      String password = bot.getPassword();
      IConnectContext context = (password == null) ? null
          : ConnectContextFactory
              .createPasswordConnectContext(password);

      container.connect(targetID, context);

      String[] roomNames = bot.getChatRooms();
      String[] roomPasswords = bot.getChatRoomPasswords();
      for (int i = 0; i < roomNames.length; i++) {
        IChatRoomInfo room = manager.getChatRoomInfo(roomNames[i]);
        roomContainer = room.createChatRoomContainer();

        roomID = room.getRoomID();

        firePreRoomConnect();

        roomContainer.addMessageListener(this);
       
        IConnectContext roomContext = (roomPasswords[i] == null) ? null
            : ConnectContextFactory
                .createPasswordConnectContext(roomPasswords[i]);
        roomContainer.connect(roomID, roomContext);
      }
    } catch (ECFException e) {
View Full Code Here

          .getAdapter(IPresenceContainerAdapter.class);

      presenceAdapter.getChatManager().addMessageListener(this);

      String password = bot.getPassword();
      IConnectContext context = (password == null) ? null
          : ConnectContextFactory
              .createPasswordConnectContext(password);

      container.connect(targetID, context);
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.core.security.IConnectContext

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.