There are three possible ways to bind XMPP to a transport:
Each transport binding
java.net.HttpURLConnection
or java.net.http.HttpClient
.A transport connector establishes a connection using one of the three transport bindings with a specific implementation, i.e. it is a factory for a connection.
A Connection
is used by a Session
to send and receive XMPP elements.
The following diagram shows the involved classes: