mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 17:49:38 +02:00
Renamed Connection to XMPPConnection
This commit is contained in:
parent
f3e007bad5
commit
489816c61f
145 changed files with 639 additions and 641 deletions
|
@ -17,7 +17,7 @@
|
|||
|
||||
package org.jivesoftware.smack;
|
||||
|
||||
import org.jivesoftware.smack.Connection.ListenerWrapper;
|
||||
import org.jivesoftware.smack.XMPPConnection.ListenerWrapper;
|
||||
import org.jivesoftware.smack.packet.*;
|
||||
import org.jivesoftware.smack.parsing.ParsingExceptionCallback;
|
||||
import org.jivesoftware.smack.parsing.UnparsablePacket;
|
||||
|
@ -38,8 +38,8 @@ import java.util.logging.Logger;
|
|||
* Listens for XML traffic from the XMPP server and parses it into packet objects.
|
||||
* The packet reader also invokes all packet listeners and collectors.<p>
|
||||
*
|
||||
* @see Connection#createPacketCollector
|
||||
* @see Connection#addPacketListener
|
||||
* @see XMPPConnection#createPacketCollector
|
||||
* @see XMPPConnection#addPacketListener
|
||||
* @author Matt Tucker
|
||||
*/
|
||||
class PacketReader {
|
||||
|
@ -115,7 +115,7 @@ class PacketReader {
|
|||
// Ignore.
|
||||
}
|
||||
if (connectionID == null) {
|
||||
throw new XMPPException("Connection failed. No response from server.");
|
||||
throw new XMPPException("XMPPConnection failed. No response from server.");
|
||||
}
|
||||
else {
|
||||
connection.connectionID = connectionID;
|
||||
|
|
|
@ -31,8 +31,8 @@ import java.util.logging.Logger;
|
|||
* interceptors can be registered to dynamically modify packets before they're actually
|
||||
* sent. Packet listeners can be registered to listen for all outgoing packets.
|
||||
*
|
||||
* @see Connection#addPacketInterceptor
|
||||
* @see Connection#addPacketSendingListener
|
||||
* @see XMPPConnection#addPacketInterceptor
|
||||
* @see XMPPConnection#addPacketSendingListener
|
||||
*
|
||||
* @author Matt Tucker
|
||||
*/
|
||||
|
|
|
@ -59,7 +59,7 @@ import java.util.List;
|
|||
* @see Connection
|
||||
* @author Matt Tucker
|
||||
*/
|
||||
public class TCPConnection extends Connection {
|
||||
public class TCPConnection extends XMPPConnection {
|
||||
|
||||
/**
|
||||
* The socket which is used for this connection.
|
||||
|
@ -793,13 +793,13 @@ public class TCPConnection extends Connection {
|
|||
// Proceed to do the handshake
|
||||
((SSLSocket) socket).startHandshake();
|
||||
//if (((SSLSocket) socket).getWantClientAuth()) {
|
||||
// System.err.println("Connection wants client auth");
|
||||
// System.err.println("XMPPConnection wants client auth");
|
||||
//}
|
||||
//else if (((SSLSocket) socket).getNeedClientAuth()) {
|
||||
// System.err.println("Connection needs client auth");
|
||||
// System.err.println("XMPPConnection needs client auth");
|
||||
//}
|
||||
//else {
|
||||
// System.err.println("Connection does not require client auth");
|
||||
// System.err.println("XMPPConnection does not require client auth");
|
||||
// }
|
||||
// Set that TLS was successful
|
||||
usingTLS = true;
|
||||
|
|
|
@ -33,7 +33,7 @@ import org.junit.Test;
|
|||
*/
|
||||
public class RosterOfflineTest {
|
||||
|
||||
Connection connection;
|
||||
XMPPConnection connection;
|
||||
|
||||
Roster roster;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue