public class SSLXMPPConnection extends XMPPConnection
DEBUG_ENABLED
Constructor and Description |
---|
SSLXMPPConnection(java.lang.String host)
Creates a new SSL connection to the specified host on the default
SSL port (5223).
|
SSLXMPPConnection(java.lang.String host,
int port)
Creates a new SSL connection to the specified host on the specified port.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isSecureConnection()
Returns true if the connection is a secured one, such as an SSL connection.
|
addConnectionListener, addConnectionListener, addPacketListener, addPacketWriterListener, close, createChat, createGroupChat, createPacketCollector, getAccountManager, getConnectionID, getHost, getPort, getRoster, getUser, isAnonymous, isAuthenticated, isConnected, login, login, loginAnonymously, removeConnectionListener, removeConnectionListener, removePacketListener, removePacketWriterListener, sendPacket
public SSLXMPPConnection(java.lang.String host) throws XMPPException
host
- the XMPP host.XMPPException
- if an error occurs while trying to establish the connection.
Two possible errors can occur which will be wrapped by an XMPPException --
UnknownHostException (XMPP error code 504), and IOException (XMPP error code
502). The error codes and wrapped exceptions can be used to present more
appropiate error messages to end-users.public SSLXMPPConnection(java.lang.String host, int port) throws XMPPException
host
- the XMPP host.port
- the port to use for the connection (default XMPP SSL port is 5223).XMPPException
- if an error occurs while trying to establish the connection.
Two possible errors can occur which will be wrapped by an XMPPException --
UnknownHostException (XMPP error code 504), and IOException (XMPP error code
502). The error codes and wrapped exceptions can be used to present more
appropiate error messages to end-users.public boolean isSecureConnection()
XMPPConnection
isSecureConnection
in class XMPPConnection
Copyright © 2003 Jive Software.