Package org.eclipse.ecf.protocol.msn.internal.encode

Examples of org.eclipse.ecf.protocol.msn.internal.encode.ResponseCommand


   * @return the created ChatSession
   * @throws IOException
   *             If an I/O error occurred
   */
  public ChatSession createChatSession(String email) throws IOException {
    final ResponseCommand cmd = notification.getChatSession();
    final ChatSession cs = new ChatSession(cmd.getParam(2), this, username, cmd.getParam(4));
    // reset the ResponseCommand so that the next XFR request won't conflict
    cmd.process(null);
    cs.invite(email);
    return cs;
  }
View Full Code Here


      // TODO: throw a more descriptive exception
      throw new ConnectException("The server did not respond properly."); //$NON-NLS-1$
    }

    write("USR", "TWN I " + username); //$NON-NLS-1$ //$NON-NLS-2$
    return new ResponseCommand(super.read().trim());
  }
View Full Code Here

   *             If the MSN servers did not respond as expected.
   * @throws IOException
   *             If an I/O error occurs during the read or write operations
   */
  String authenticate(String username) throws ConnectException, IOException {
    final ResponseCommand received = connect(username);
    if (!received.getCommand().equals("XFR")) { //$NON-NLS-1$
      throw new ConnectException("The server did not respond properly."); //$NON-NLS-1$
    }
    return received.getParam(2);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.protocol.msn.internal.encode.ResponseCommand

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.