Package org.eclipse.ecf.provider.comm

Examples of org.eclipse.ecf.provider.comm.ISynchAsynchConnection


  }

  protected ISynchAsynchConnection createConnection(ID remoteSpace, Object data) throws ConnectionCreateException {
    trace("createConnection:" + remoteSpace + ":" + data);
    // Object[] args = { new Integer(keepAlive) };
    final ISynchAsynchConnection conn = new HttpClient(receiver);
    return conn;
  }
View Full Code Here


    return originalTarget;
  }

  public RssFeed receiveFeed(String feedPath) throws IOException {
    RssFeed feed = null;
    final ISynchAsynchConnection connection = getConnection();
    synchronized (connection) {
      if (connection.isConnected()) {
        try {
          feed = FeedParser.parse((byte[]) connection.sendSynch(null, feedPath.getBytes()));
        } catch (final ParseException e) {
          throw new IOException(e.getMessage());
        }
      }
    }
View Full Code Here

   * @return ISynchAsynchConnection a non-<code>null</code> instance.
   * @throws ConnectionCreateException not thrown by this implementation.
   */
  protected ISynchAsynchConnection createConnection(ID remoteSpace, Object data) throws ConnectionCreateException {
    debug("createClientConnection:" + remoteSpace + ":" + data); //$NON-NLS-1$ //$NON-NLS-2$
    ISynchAsynchConnection conn = new SSLClient(receiver, keepAlive);
    return conn;
  }
View Full Code Here

   * @return ISynchAsynchConnection a non-<code>null</code> instance.
   * @throws ConnectionCreateException not thrown by this implementation.
   */
  protected ISynchAsynchConnection createConnection(ID remoteSpace, Object data) throws ConnectionCreateException {
    debug("createClientConnection:" + remoteSpace + ":" + data); //$NON-NLS-1$ //$NON-NLS-2$
    ISynchAsynchConnection conn = new Client(receiver, keepAlive);
    return conn;
  }
View Full Code Here

        groupID));
    synchronized (getConnectLock()) {
      // If we are currently connected
      if (isConnected()) {
        XmppPlugin.getDefault().unregisterService(this);
        final ISynchAsynchConnection conn = getConnection();
        synchronized (conn) {
          synchronized (getGroupMembershipLock()) {
            handleLeave(groupID, conn);
          }
        }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.provider.comm.ISynchAsynchConnection

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.