|
Smack | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.smack.XMPPConnection
org.jivesoftware.smack.SSLXMPPConnection
Creates an SSL connection to a XMPP server using the legacy dedicated SSL port mechanism. Fully compliant XMPP 1.0 servers (e.g. Wildfire 2.4.0) do not require using a dedicated SSL port. Instead, TLS (a standardized version of SSL 3.0) is dynamically negotiated over the standard XMPP port. Therefore, only use this class to connect to an XMPP server if you know that the server does not support XMPP 1.0 TLS connections.
Field Summary |
Fields inherited from class org.jivesoftware.smack.XMPPConnection |
DEBUG_ENABLED |
Constructor Summary | |
SSLXMPPConnection(String host)
Creates a new SSL connection to the specified host on the default SSL port (5223). |
|
SSLXMPPConnection(String host,
int port)
Creates a new SSL connection to the specified host on the specified port. |
|
SSLXMPPConnection(String host,
int port,
String serviceName)
Creates a new SSL connection to the specified XMPP server on the given host and port. |
Method Summary | |
boolean |
isSecureConnection()
Returns true if the connection is a secured one, such as an SSL connection or if TLS was negotiated successfully. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SSLXMPPConnection(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(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 SSLXMPPConnection(String host, int port, String serviceName) throws XMPPException
host
- the host name, or null for the loopback address.port
- the port on the server that should be used (default XMPP SSL port is 5223).serviceName
- the name of the XMPP server to connect to; e.g. jivesoftware.com.
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.Method Detail |
public boolean isSecureConnection()
XMPPConnection
isSecureConnection
in class XMPPConnection
|
Smack | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |