/
java_client.xml
53 lines (50 loc) · 1.73 KB
/
java_client.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?xml version="1.0" encoding="UTF-8"?>
<section version="5.0"
xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://docbook.org/ns/docbook http://www.docbook.org/xml/5.0/xsd/docbook.xsd"
xml:id="java_client">
<info>
<title>Client Library</title>
</info>
<para>
You can use the CometD client implementation in any <trademark>JSE</trademark> or
<trademark>JEE</trademark> application.
It consists of one main class,<classname>org.cometd.client.BayeuxClient</classname>, which
implements the <classname>org.cometd.bayeux.client.ClientSession</classname>
interface.
</para>
<para>
Typical uses of the CometD Java client include:
</para>
<itemizedlist>
<listitem>
<para>
The transport for a rich thick Java UI (for example, Swing) to
communicate to a Bayeux Server (also via firewalls).
</para>
</listitem>
<listitem>
<para>
A load generator to simulate thousands of CometD clients, for
example <classname>org.cometd.benchmark.BayeuxLoadClient</classname>
</para>
</listitem>
</itemizedlist>
<para>
The following sections provide details about the Java
<code>BayeuxClient</code> APIs and their implementation secrets.
</para>
<xi:include href="java_client_handshake.xml" />
<xi:include href="java_client_subscribe.xml" />
<xi:include href="java_client_publish.xml" />
<xi:include href="java_client_disconnect.xml" />
<xi:include href="java_client_transports.xml" />
<section>
<info>
<title>Client-side Annotations</title>
</info>
For information about client-side annotations, see <xref linkend="java_server_services_annotated_client-side" />
</section>
</section>