Examples of ECFConnection


Examples of org.eclipse.ecf.internal.provider.xmpp.smack.ECFConnection

  public ECFConnection getECFConnection() {
    return (ECFConnection) super.getConnection();
  }

  public XMPPConnection getXMPPConnection() {
    final ECFConnection conn = getECFConnection();
    if (conn == null)
      return null;
    else
      return conn.getXMPPConnection();
  }
View Full Code Here

Examples of org.eclipse.ecf.internal.provider.xmpp.smack.ECFConnection

  protected ISynchAsynchConnection createConnection(ID remoteSpace,
      Object data) throws ConnectionCreateException {
    boolean google = isGoogle(remoteSpace);
    CallbackHandler ch = data instanceof IConnectContext ? ((IConnectContext) data)
        .getCallbackHandler() : null;
    return new ECFConnection(google, getConnectNamespace(), receiver, ch);
  }
View Full Code Here

Examples of org.eclipse.ecf.internal.provider.xmpp.smack.ECFConnection

      // First reset target resource to whatever the server says it is
      resetTargetResource(originalTarget, serverData);

      addNewRemoteMember(originalTarget, null);

      final ECFConnection conn = getECFConnection();
      accountManager.setConnection(conn.getXMPPConnection());
      chatRoomManager.setConnection(getConnectNamespace(),
          originalTarget, conn);
      searchManager.setConnection(getConnectNamespace(), originalTarget,
          conn);
      searchManager.setEnabled(!isGoogle(originalTarget));
      presenceHelper.setUser(new User(originalTarget));
      outgoingFileTransferContainerAdapter.setConnection(conn
          .getXMPPConnection());
      return originalTarget;

    } else
      throw new ConnectException(
View Full Code Here

Examples of org.eclipse.ecf.internal.provider.xmpp.smack.ECFConnection

   * .eclipse.ecf.core.identity.ID, java.lang.Object)
   */
  protected ISynchAsynchConnection createConnection(ID remoteSpace,
      Object data) throws ConnectionCreateException {
    final boolean google = isGoogle(remoteSpace);
    return new ECFConnection(google, getConnectNamespace(), receiver);
  }
View Full Code Here

Examples of org.eclipse.ecf.internal.provider.xmpp.smack.ECFConnection

  protected int getConnectTimeout() {
    return keepAlive;
  }

  protected Roster getRoster() throws IOException {
    final ECFConnection connection = getECFConnection();
    if (connection != null) {
      return connection.getRoster();
    } else
      return null;
  }
View Full Code Here

Examples of org.eclipse.ecf.internal.provider.xmpp.smack.ECFConnection

  }

  // utility methods

  protected ECFConnection getConnectionOrThrowIfNull() throws IOException {
    final ECFConnection conn = container.getECFConnection();
    if (conn == null)
      throw new IOException("Not connected");
    return conn;
  }
View Full Code Here

Examples of org.eclipse.ecf.internal.provider.xmpp.smack.ECFConnection

  }

  protected ID createRoomIDFromName(String from) {
    try {
      final ECFConnection ecfConnection = getConnectionOrThrowIfNull();
      return new XMPPRoomID(container.getConnectNamespace(),
          ecfConnection.getXMPPConnection(), from);
    } catch (final Exception e) {
      traceStack("Exception in createRoomIDFromName", e);
      return null;
    }
  }
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.