-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from krisleonard-mcafee/master
Add proxy support and migrate to paho.mqtt.java 1.2.1
- Loading branch information
Showing
23 changed files
with
1,380 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[submodule "paho.mqtt.java"] | ||
path = paho.mqtt.java | ||
url = https://github.com/opendxl-community/paho.mqtt.java.git | ||
branch = opendxl-modifications | ||
branch = opendxl-modifications-merge-1.2.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
Proxy Support | ||
============= | ||
|
||
To have the OpenDXL Java Client connect to DXL Brokers via a proxy set ``UseWebSockets`` setting to ``true`` and set | ||
the proxy host name or IP address, port, user name, and password in the ``dxlclient.config`` file under the | ||
``[Proxy]`` section. The ``[Proxy]`` is optional and if it does not exist or the values under it are blank in the | ||
``dxlclient.config``, then the OpenDXL Java Client will not use a proxy when connecting to the DXL Brokers listed under | ||
the ``[BrokersWebSockets]`` section. The ``User`` and ``Password`` settings are only required if the proxy requires | ||
authentication. | ||
|
||
.. parsed-literal:: | ||
[General] | ||
UseWebSockets=true | ||
[Certs] | ||
BrokerCertChain=c:\\certificates\\brokercerts.crt | ||
CertFile=c:\\certificates\\client.crt | ||
PrivateKey=c:\\certificates\\client.key | ||
[Brokers] | ||
{5d73b77f-8c4b-4ae0-b437-febd12facfd4}={5d73b77f-8c4b-4ae0-b437-febd12facfd4};8883;mybroker.mcafee.com;192.168.1.12 | ||
{24397e4d-645f-4f2f-974f-f98c55bdddf7}={24397e4d-645f-4f2f-974f-f98c55bdddf7};8883;mybroker2.mcafee.com;192.168.1.13 | ||
[BrokersWebSockets] | ||
{5d73b77f-8c4b-4ae0-b437-febd12facfd4}={5d73b77f-8c4b-4ae0-b437-febd12facfd4};443;mybroker.mcafee.com;192.168.1.12 | ||
{24397e4d-645f-4f2f-974f-f98c55bdddf7}={24397e4d-645f-4f2f-974f-f98c55bdddf7};443;mybroker2.mcafee.com;192.168.1.13 | ||
[Proxy] | ||
Address=proxy.mycompany.com | ||
Port=3128 | ||
User=proxyUser | ||
Password=proxyPassword | ||
.. note:: | ||
|
||
In order to use the ``[Proxy]`` section settings, the ``UseWebSockets`` setting must also be set to ``true``. The | ||
OpenDXL Java Client will only use proxy settings when connecting to DXL Brokers via WebSockets. | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
WebSocket Support | ||
================= | ||
|
||
The OpenDXL Java Client will connect to DXL Brokers via WebSockets when the ``UseWebSockets`` setting is set to ``true`` | ||
in the ``dxlclient.config`` file. | ||
|
||
.. parsed-literal:: | ||
[General] | ||
UseWebSockets=true | ||
[Certs] | ||
BrokerCertChain=c:\\certificates\\brokercerts.crt | ||
CertFile=c:\\certificates\\client.crt | ||
PrivateKey=c:\\certificates\\client.key | ||
[Brokers] | ||
{5d73b77f-8c4b-4ae0-b437-febd12facfd4}={5d73b77f-8c4b-4ae0-b437-febd12facfd4};8883;mybroker.mcafee.com;192.168.1.12 | ||
{24397e4d-645f-4f2f-974f-f98c55bdddf7}={24397e4d-645f-4f2f-974f-f98c55bdddf7};8883;mybroker2.mcafee.com;192.168.1.13 | ||
[BrokersWebSockets] | ||
{5d73b77f-8c4b-4ae0-b437-febd12facfd4}={5d73b77f-8c4b-4ae0-b437-febd12facfd4};443;mybroker.mcafee.com;192.168.1.12 | ||
{24397e4d-645f-4f2f-974f-f98c55bdddf7}={24397e4d-645f-4f2f-974f-f98c55bdddf7};443;mybroker2.mcafee.com;192.168.1.13 | ||
[Proxy] | ||
Address=proxy.mycompany.com | ||
Port=3128 | ||
User=proxyUser | ||
Password=proxyPassword | ||
When the ``UseWebSockets`` setting is set to ``true``, the OpenDXL Java Client will connect to the DXL Brokers | ||
listed in the ``[BrokersWebSockets]`` sections via WebSockets. | ||
|
||
If ``UseWebSockets`` setting is set to ``false`` or does not exist in the ``dxlclient.config`` file, then the | ||
OpenDXL Java Client will connect to the DXL Brokers listed in the ``[Brokers]`` section via MQTT. |
Submodule paho.mqtt.java
updated
516 files
Oops, something went wrong.