public abstract class Connection extends Object implements AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
abstract void |
connect()
Deprecated.
|
abstract void |
connect(Jid from)
Connects to the server and provides an optional 'from' attribute.
|
String |
getHostname()
Gets the hostname, which is used for the connection.
|
int |
getPort()
Gets the port, which is used for the connection.
|
Proxy |
getProxy()
Gets the proxy.
|
abstract String |
getStreamId()
Gets the stream id of this connection.
|
XmppSession |
getXmppSession()
Gets the XMPP session which is associated with this connection.
|
void |
initialize(XmppSession xmppSession)
Deprecated.
|
abstract boolean |
isSecure()
Indicates whether this connection is secured by TLS/SSL.
|
abstract void |
send(ClientStreamElement clientStreamElement)
Sends an element.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic final XmppSession getXmppSession()
@Deprecated public final void initialize(XmppSession xmppSession)
xmppSession - The XMPP session.public final String getHostname()
public final int getPort()
public final Proxy getProxy()
public abstract void send(ClientStreamElement clientStreamElement)
clientStreamElement - The element.@Deprecated public abstract void connect() throws IOException
connect(rocks.xmpp.core.Jid)IOException - If no connection could be established, e.g. due to unknown host.public abstract void connect(Jid from) throws IOException
from - The 'from' attribute.IOException - If no connection could be established, e.g. due to unknown host.public abstract boolean isSecure()
public abstract String getStreamId()
Copyright © 2014–2015 XMPP.rocks. All rights reserved.