-
Notifications
You must be signed in to change notification settings - Fork 1
/
ClientManager.html
1419 lines (1418 loc) · 79 KB
/
ClientManager.html
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (11.0.2) on Sat Oct 21 15:44:48 UTC 2023 -->
<title>ClientManager (Tyrus 2.0.5 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="dc.created" content="2023-10-21">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../jquery/jquery-3.3.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-migrate-3.0.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="ClientManager (Tyrus 2.0.5 API)";
}
}
catch(err) {
}
//-->
var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":9,"i9":9,"i10":9,"i11":9,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/ClientManager.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses.html">All Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li><a href="#nested.class.summary">Nested</a> | </li>
<li><a href="#field.summary">Field</a> | </li>
<li><a href="#constructor.summary">Constr</a> | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field.detail">Field</a> | </li>
<li><a href="#constructor.detail">Constr</a> | </li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding"> </div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">org.glassfish.tyrus.client</a></div>
<h2 title="Class ClientManager" class="title">Class ClientManager</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li><a href="../core/ExecutorServiceProvider.html" title="class in org.glassfish.tyrus.core">org.glassfish.tyrus.core.ExecutorServiceProvider</a></li>
<li>
<ul class="inheritance">
<li><a href="../core/BaseContainer.html" title="class in org.glassfish.tyrus.core">org.glassfish.tyrus.core.BaseContainer</a></li>
<li>
<ul class="inheritance">
<li>org.glassfish.tyrus.client.ClientManager</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><code><a href="../../../../jakarta/websocket/WebSocketContainer.html" title="interface in jakarta.websocket">WebSocketContainer</a></code></dd>
</dl>
<hr>
<pre>public class <span class="typeNameLabel">ClientManager</span>
extends <a href="../core/BaseContainer.html" title="class in org.glassfish.tyrus.core">BaseContainer</a>
implements <a href="../../../../jakarta/websocket/WebSocketContainer.html" title="interface in jakarta.websocket">WebSocketContainer</a></pre>
<div class="block">ClientManager implementation.</div>
<dl>
<dt><span class="simpleTagLabel">Author:</span></dt>
<dd>Stepan Kopriva, Pavel Bucek</dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary">
<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class </code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="ClientManager.ReconnectHandler.html" title="class in org.glassfish.tyrus.client">ClientManager.ReconnectHandler</a></span></code></th>
<td class="colLast">
<div class="block">Reconnect handler.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="nested.classes.inherited.from.class.org.glassfish.tyrus.core.BaseContainer">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from class org.glassfish.tyrus.core.<a href="../core/BaseContainer.html" title="class in org.glassfish.tyrus.core">BaseContainer</a></h3>
<code><a href="../core/BaseContainer.ShutDownCondition.html" title="interface in org.glassfish.tyrus.core">BaseContainer.ShutDownCondition</a></code></li>
</ul>
</li>
</ul>
</section>
<!-- =========== FIELD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary">
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Field</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#HANDSHAKE_TIMEOUT">HANDSHAKE_TIMEOUT</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">please use <a href="ClientProperties.html#HANDSHAKE_TIMEOUT"><code>ClientProperties.HANDSHAKE_TIMEOUT</code></a>.</div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#PROXY_HEADERS">PROXY_HEADERS</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">please use <a href="ClientProperties.html#PROXY_HEADERS"><code>ClientProperties.PROXY_HEADERS</code></a>.</div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#PROXY_URI">PROXY_URI</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">please use <a href="ClientProperties.html#PROXY_URI"><code>ClientProperties.PROXY_URI</code></a>.</div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#RECONNECT_HANDLER">RECONNECT_HANDLER</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">please use <a href="ClientProperties.html#RECONNECT_HANDLER"><code>ClientProperties.RECONNECT_HANDLER</code></a>.</div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#SSL_ENGINE_CONFIGURATOR">SSL_ENGINE_CONFIGURATOR</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">please use <a href="ClientProperties.html#SSL_ENGINE_CONFIGURATOR"><code>ClientProperties.SSL_ENGINE_CONFIGURATOR</code></a>.</div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#WLS_HOSTNAME_VERIFIER_CLASS">WLS_HOSTNAME_VERIFIER_CLASS</a></span></code></th>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#WLS_IGNORE_HOSTNAME_VERIFICATION">WLS_IGNORE_HOSTNAME_VERIFICATION</a></span></code></th>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#WLS_MAX_THREADS">WLS_MAX_THREADS</a></span></code></th>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#WLS_PROXY_HOST">WLS_PROXY_HOST</a></span></code></th>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#WLS_PROXY_PASSWORD">WLS_PROXY_PASSWORD</a></span></code></th>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#WLS_PROXY_PORT">WLS_PROXY_PORT</a></span></code></th>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#WLS_PROXY_USERNAME">WLS_PROXY_USERNAME</a></span></code></th>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#WLS_SSL_PROTOCOLS_PROPERTY">WLS_SSL_PROTOCOLS_PROPERTY</a></span></code></th>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#WLS_SSL_TRUSTSTORE_PROPERTY">WLS_SSL_TRUSTSTORE_PROPERTY</a></span></code></th>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#WLS_SSL_TRUSTSTORE_PWD_PROPERTY">WLS_SSL_TRUSTSTORE_PWD_PROPERTY</a></span></code></th>
<td class="colLast"> </td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E()">ClientManager</a></span>()</code></th>
<td class="colLast">
<div class="block">Create new <a href="ClientManager.html" title="class in org.glassfish.tyrus.client"><code>ClientManager</code></a> instance.</div>
</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>java.util.concurrent.Future<<a href="../../../../jakarta/websocket/Session.html" title="interface in jakarta.websocket">Session</a>></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#asyncConnectToServer(jakarta.websocket.Endpoint,jakarta.websocket.ClientEndpointConfig,java.net.URI)">asyncConnectToServer</a></span>​(<a href="../../../../jakarta/websocket/Endpoint.html" title="class in jakarta.websocket">Endpoint</a> endpointInstance,
<a href="../../../../jakarta/websocket/ClientEndpointConfig.html" title="interface in jakarta.websocket">ClientEndpointConfig</a> cec,
java.net.URI path)</code></th>
<td class="colLast">
<div class="block">Non-blocking version of <a href="../../../../jakarta/websocket/WebSocketContainer.html#connectToServer(jakarta.websocket.Endpoint,jakarta.websocket.ClientEndpointConfig,java.net.URI)"><code>WebSocketContainer.connectToServer(jakarta.websocket.Endpoint,
jakarta.websocket.ClientEndpointConfig, java.net.URI)</code></a>.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>java.util.concurrent.Future<<a href="../../../../jakarta/websocket/Session.html" title="interface in jakarta.websocket">Session</a>></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#asyncConnectToServer(java.lang.Class,java.net.URI)">asyncConnectToServer</a></span>​(java.lang.Class<?> annotatedEndpointClass,
java.net.URI path)</code></th>
<td class="colLast">
<div class="block">Non-blocking version of <a href="../../../../jakarta/websocket/WebSocketContainer.html#connectToServer(java.lang.Class,java.net.URI)"><code>WebSocketContainer.connectToServer(Class, java.net.URI)</code></a>.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>java.util.concurrent.Future<<a href="../../../../jakarta/websocket/Session.html" title="interface in jakarta.websocket">Session</a>></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#asyncConnectToServer(java.lang.Class,jakarta.websocket.ClientEndpointConfig,java.net.URI)">asyncConnectToServer</a></span>​(java.lang.Class<? extends <a href="../../../../jakarta/websocket/Endpoint.html" title="class in jakarta.websocket">Endpoint</a>> endpointClass,
<a href="../../../../jakarta/websocket/ClientEndpointConfig.html" title="interface in jakarta.websocket">ClientEndpointConfig</a> cec,
java.net.URI path)</code></th>
<td class="colLast">
<div class="block">Non-blocking version of <a href="../../../../jakarta/websocket/WebSocketContainer.html#connectToServer(java.lang.Class,jakarta.websocket.ClientEndpointConfig,java.net.URI)"><code>WebSocketContainer.connectToServer(Class, jakarta.websocket.ClientEndpointConfig,
java.net.URI)</code></a>.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>java.util.concurrent.Future<<a href="../../../../jakarta/websocket/Session.html" title="interface in jakarta.websocket">Session</a>></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#asyncConnectToServer(java.lang.Object,java.net.URI)">asyncConnectToServer</a></span>​(java.lang.Object obj,
java.net.URI path)</code></th>
<td class="colLast">
<div class="block">Non-blocking version of <a href="../../../../jakarta/websocket/WebSocketContainer.html#connectToServer(java.lang.Object,java.net.URI)"><code>WebSocketContainer.connectToServer(Object, java.net.URI)</code></a>.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code><a href="../../../../jakarta/websocket/Session.html" title="interface in jakarta.websocket">Session</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#connectToServer(jakarta.websocket.Endpoint,jakarta.websocket.ClientEndpointConfig,java.net.URI)">connectToServer</a></span>​(<a href="../../../../jakarta/websocket/Endpoint.html" title="class in jakarta.websocket">Endpoint</a> endpointInstance,
<a href="../../../../jakarta/websocket/ClientEndpointConfig.html" title="interface in jakarta.websocket">ClientEndpointConfig</a> cec,
java.net.URI path)</code></th>
<td class="colLast">
<div class="block">Connect the supplied programmatic client endpoint instance to its server with the given configuration.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code><a href="../../../../jakarta/websocket/Session.html" title="interface in jakarta.websocket">Session</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#connectToServer(java.lang.Class,jakarta.websocket.ClientEndpointConfig,java.net.URI)">connectToServer</a></span>​(java.lang.Class<? extends <a href="../../../../jakarta/websocket/Endpoint.html" title="class in jakarta.websocket">Endpoint</a>> endpointClass,
<a href="../../../../jakarta/websocket/ClientEndpointConfig.html" title="interface in jakarta.websocket">ClientEndpointConfig</a> cec,
java.net.URI path)</code></th>
<td class="colLast">
<div class="block">Connect the supplied programmatic endpoint to its server with the given configuration.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code><a href="../../../../jakarta/websocket/Session.html" title="interface in jakarta.websocket">Session</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#connectToServer(java.lang.Class,java.net.URI)">connectToServer</a></span>​(java.lang.Class annotatedEndpointClass,
java.net.URI path)</code></th>
<td class="colLast">
<div class="block">Connect the supplied annotated endpoint to its server.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code><a href="../../../../jakarta/websocket/Session.html" title="interface in jakarta.websocket">Session</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#connectToServer(java.lang.Object,java.net.URI)">connectToServer</a></span>​(java.lang.Object obj,
java.net.URI path)</code></th>
<td class="colLast">
<div class="block">Connect the supplied annotated endpoint instance to its server.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static <a href="ClientManager.html" title="class in org.glassfish.tyrus.client">ClientManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createClient()">createClient</a></span>()</code></th>
<td class="colLast">
<div class="block">Create new <a href="ClientManager.html" title="class in org.glassfish.tyrus.client"><code>ClientManager</code></a> instance.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static <a href="ClientManager.html" title="class in org.glassfish.tyrus.client">ClientManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createClient(jakarta.websocket.WebSocketContainer)">createClient</a></span>​(<a href="../../../../jakarta/websocket/WebSocketContainer.html" title="interface in jakarta.websocket">WebSocketContainer</a> webSocketContainer)</code></th>
<td class="colLast">
<div class="block">Create new ClientManager instance on top of provided <a href="../../../../jakarta/websocket/WebSocketContainer.html" title="interface in jakarta.websocket"><code>WebSocketContainer</code></a> instance.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>static <a href="ClientManager.html" title="class in org.glassfish.tyrus.client">ClientManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createClient(java.lang.String)">createClient</a></span>​(java.lang.String containerProviderClassName)</code></th>
<td class="colLast">
<div class="block">Create new ClientManager instance.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>static <a href="ClientManager.html" title="class in org.glassfish.tyrus.client">ClientManager</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#createClient(java.lang.String,jakarta.websocket.WebSocketContainer)">createClient</a></span>​(java.lang.String containerProviderClassName,
<a href="../../../../jakarta/websocket/WebSocketContainer.html" title="interface in jakarta.websocket">WebSocketContainer</a> webSocketContainer)</code></th>
<td class="colLast">
<div class="block">Create new ClientManager instance on top of provided <a href="../../../../jakarta/websocket/WebSocketContainer.html" title="interface in jakarta.websocket"><code>WebSocketContainer</code></a> instance.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDefaultAsyncSendTimeout()">getDefaultAsyncSendTimeout</a></span>()</code></th>
<td class="colLast">
<div class="block">Return the number of milliseconds the implementation will timeout attempting to send a websocket message for all
RemoteEndpoints associated with this container.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDefaultMaxBinaryMessageBufferSize()">getDefaultMaxBinaryMessageBufferSize</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the default maximum size of incoming binary message that this container will buffer.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDefaultMaxSessionIdleTimeout()">getDefaultMaxSessionIdleTimeout</a></span>()</code></th>
<td class="colLast">
<div class="block">Return the default time in milliseconds after which any web socket sessions in this container will be closed if
it has been inactive.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDefaultMaxTextMessageBufferSize()">getDefaultMaxTextMessageBufferSize</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the default maximum size of incoming text message that this container will buffer.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>java.util.Set<<a href="../../../../jakarta/websocket/Extension.html" title="interface in jakarta.websocket">Extension</a>></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getInstalledExtensions()">getInstalledExtensions</a></span>()</code></th>
<td class="colLast">
<div class="block">Return the set of Extensions installed in the container.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>java.util.Map<java.lang.String,​java.lang.Object></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getProperties()">getProperties</a></span>()</code></th>
<td class="colLast">
<div class="block">Container properties.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setAsyncSendTimeout(long)">setAsyncSendTimeout</a></span>​(long timeoutmillis)</code></th>
<td class="colLast">
<div class="block">Sets the number of milliseconds the implementation will timeout attempting to send a websocket message for all
RemoteEndpoints associated with this container.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDefaultMaxBinaryMessageBufferSize(int)">setDefaultMaxBinaryMessageBufferSize</a></span>​(int i)</code></th>
<td class="colLast">
<div class="block">Sets the default maximum size of incoming binary message that this container will buffer.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDefaultMaxSessionIdleTimeout(long)">setDefaultMaxSessionIdleTimeout</a></span>​(long defaultMaxSessionIdleTimeout)</code></th>
<td class="colLast">
<div class="block">Sets the default time in milliseconds after which any web socket sessions in this container will be closed if it
has been inactive.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDefaultMaxTextMessageBufferSize(int)">setDefaultMaxTextMessageBufferSize</a></span>​(int i)</code></th>
<td class="colLast">
<div class="block">Sets the maximum size of incoming text message that this container will buffer.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.org.glassfish.tyrus.core.BaseContainer">
<!-- -->
</a>
<h3>Methods inherited from class org.glassfish.tyrus.core.<a href="../core/BaseContainer.html" title="class in org.glassfish.tyrus.core">BaseContainer</a></h3>
<code><a href="../core/BaseContainer.html#getExecutorService()">getExecutorService</a>, <a href="../core/BaseContainer.html#getScheduledExecutorService()">getScheduledExecutorService</a>, <a href="../core/BaseContainer.html#shutdown()">shutdown</a>, <a href="../core/BaseContainer.html#shutdown(org.glassfish.tyrus.core.BaseContainer.ShutDownCondition)">shutdown</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a id="HANDSHAKE_TIMEOUT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>HANDSHAKE_TIMEOUT</h4>
<pre>public static final java.lang.String HANDSHAKE_TIMEOUT</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">please use <a href="ClientProperties.html#HANDSHAKE_TIMEOUT"><code>ClientProperties.HANDSHAKE_TIMEOUT</code></a>.</div>
</div>
<div class="block">Property usable in <a href="#getProperties()"><code>getProperties()</code></a>.
<p>
Value must be <code>int</code> and represents handshake timeout in milliseconds. Default value is 30000 (30 seconds).</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.glassfish.tyrus.client.ClientManager.HANDSHAKE_TIMEOUT">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="RECONNECT_HANDLER">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>RECONNECT_HANDLER</h4>
<pre>public static final java.lang.String RECONNECT_HANDLER</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">please use <a href="ClientProperties.html#RECONNECT_HANDLER"><code>ClientProperties.RECONNECT_HANDLER</code></a>.</div>
</div>
<div class="block">Property usable in <a href="#getProperties()"><code>getProperties()</code></a>.
<p>
Value must be <a href="ClientManager.ReconnectHandler.html" title="class in org.glassfish.tyrus.client"><code>ClientManager.ReconnectHandler</code></a> instance.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.glassfish.tyrus.client.ClientManager.RECONNECT_HANDLER">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="PROXY_URI">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PROXY_URI</h4>
<pre>public static final java.lang.String PROXY_URI</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">please use <a href="ClientProperties.html#PROXY_URI"><code>ClientProperties.PROXY_URI</code></a>.</div>
</div>
<div class="block">Client-side user property to set proxy URI.
<p>
Value is expected to be <code>String</code> and represent proxy URI. Protocol part is currently ignored
but must be present (<code>URI(String)</code> is used for parsing).
<pre>
client.getProperties().put(ClientManager.PROXY_URI, "http://my.proxy.com:80");
client.connectToServer(...);
</pre></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../jakarta/websocket/EndpointConfig.html#getUserProperties()"><code>EndpointConfig.getUserProperties()</code></a>,
<a href="../../../../constant-values.html#org.glassfish.tyrus.client.ClientManager.PROXY_URI">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="PROXY_HEADERS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PROXY_HEADERS</h4>
<pre>public static final java.lang.String PROXY_HEADERS</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">please use <a href="ClientProperties.html#PROXY_HEADERS"><code>ClientProperties.PROXY_HEADERS</code></a>.</div>
</div>
<div class="block">Client-side user property to set additional proxy headers.
<p>
Value is expected to be <code>Map</code><<code>String</code>, <code>String</code>> and represent raw http headers
to be added to initial request which is sent to proxy. Key corresponds to header name, value is header
value.
<p>
Sample below demonstrates use of this feature to set preemptive basic proxy authentication:
<pre>
final HashMap<String, String> proxyHeaders = new HashMap<String, String>();
proxyHeaders.put("Proxy-Authorization", "Basic " +
Base64.getEncoder().encodeToString("username:password".getBytes(Charset.forName("UTF-8"))));
client.getProperties().put(GrizzlyClientSocket.PROXY_HEADERS, proxyHeaders);
client.connectToServer(...);
</pre>
Please note that these headers will be used only when establishing proxy connection, for modifying
WebSocket handshake headers, see <a href="../../../../jakarta/websocket/ClientEndpointConfig.Configurator.html#beforeRequest(java.util.Map)"><code>ClientEndpointConfig.Configurator.beforeRequest(java.util.Map)</code></a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../jakarta/websocket/EndpointConfig.html#getUserProperties()"><code>EndpointConfig.getUserProperties()</code></a>,
<a href="../../../../constant-values.html#org.glassfish.tyrus.client.ClientManager.PROXY_HEADERS">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="SSL_ENGINE_CONFIGURATOR">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>SSL_ENGINE_CONFIGURATOR</h4>
<pre>public static final java.lang.String SSL_ENGINE_CONFIGURATOR</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">please use <a href="ClientProperties.html#SSL_ENGINE_CONFIGURATOR"><code>ClientProperties.SSL_ENGINE_CONFIGURATOR</code></a>.</div>
</div>
<div class="block">Property usable in <a href="#getProperties()"><code>getProperties()</code></a> as a key for SSL configuration.
<p>
Value is expected to be either <code>org.glassfish.grizzly.ssl.SSLEngineConfigurator</code> when configuring Grizzly
client or <a href="SslEngineConfigurator.html" title="class in org.glassfish.tyrus.client"><code>SslEngineConfigurator</code></a> when configuring JDK client.
<p>
Example configuration for JDK client:
<pre>
SslContextConfigurator sslContextConfigurator = new SslContextConfigurator();
sslContextConfigurator.setTrustStoreFile("...");
sslContextConfigurator.setTrustStorePassword("...");
sslContextConfigurator.setTrustStoreType("...");
sslContextConfigurator.setKeyStoreFile("...");
sslContextConfigurator.setKeyStorePassword("...");
sslContextConfigurator.setKeyStoreType("...");
SslEngineConfigurator sslEngineConfigurator = new SslEngineConfigurator(sslContextConfigurator, true,
false,
false);
client.getProperties().put(ClientManager.SSL_ENGINE_CONFIGURATOR, sslEngineConfigurator);
</pre></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.glassfish.tyrus.client.ClientManager.SSL_ENGINE_CONFIGURATOR">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="WLS_PROXY_HOST">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>WLS_PROXY_HOST</h4>
<pre>public static final java.lang.String WLS_PROXY_HOST</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.glassfish.tyrus.client.ClientManager.WLS_PROXY_HOST">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="WLS_PROXY_PORT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>WLS_PROXY_PORT</h4>
<pre>public static final java.lang.String WLS_PROXY_PORT</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.glassfish.tyrus.client.ClientManager.WLS_PROXY_PORT">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="WLS_PROXY_USERNAME">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>WLS_PROXY_USERNAME</h4>
<pre>public static final java.lang.String WLS_PROXY_USERNAME</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.glassfish.tyrus.client.ClientManager.WLS_PROXY_USERNAME">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="WLS_PROXY_PASSWORD">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>WLS_PROXY_PASSWORD</h4>
<pre>public static final java.lang.String WLS_PROXY_PASSWORD</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.glassfish.tyrus.client.ClientManager.WLS_PROXY_PASSWORD">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="WLS_SSL_PROTOCOLS_PROPERTY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>WLS_SSL_PROTOCOLS_PROPERTY</h4>
<pre>public static final java.lang.String WLS_SSL_PROTOCOLS_PROPERTY</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.glassfish.tyrus.client.ClientManager.WLS_SSL_PROTOCOLS_PROPERTY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="WLS_SSL_TRUSTSTORE_PROPERTY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>WLS_SSL_TRUSTSTORE_PROPERTY</h4>
<pre>public static final java.lang.String WLS_SSL_TRUSTSTORE_PROPERTY</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.glassfish.tyrus.client.ClientManager.WLS_SSL_TRUSTSTORE_PROPERTY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="WLS_SSL_TRUSTSTORE_PWD_PROPERTY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>WLS_SSL_TRUSTSTORE_PWD_PROPERTY</h4>
<pre>public static final java.lang.String WLS_SSL_TRUSTSTORE_PWD_PROPERTY</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.glassfish.tyrus.client.ClientManager.WLS_SSL_TRUSTSTORE_PWD_PROPERTY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="WLS_MAX_THREADS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>WLS_MAX_THREADS</h4>
<pre>public static final java.lang.String WLS_MAX_THREADS</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.glassfish.tyrus.client.ClientManager.WLS_MAX_THREADS">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="WLS_IGNORE_HOSTNAME_VERIFICATION">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>WLS_IGNORE_HOSTNAME_VERIFICATION</h4>
<pre>public static final java.lang.String WLS_IGNORE_HOSTNAME_VERIFICATION</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.glassfish.tyrus.client.ClientManager.WLS_IGNORE_HOSTNAME_VERIFICATION">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="WLS_HOSTNAME_VERIFIER_CLASS">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>WLS_HOSTNAME_VERIFIER_CLASS</h4>
<pre>public static final java.lang.String WLS_HOSTNAME_VERIFIER_CLASS</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.glassfish.tyrus.client.ClientManager.WLS_HOSTNAME_VERIFIER_CLASS">Constant Field Values</a></dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a id="<init>()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>ClientManager</h4>
<pre>public ClientManager()</pre>
<div class="block">Create new <a href="ClientManager.html" title="class in org.glassfish.tyrus.client"><code>ClientManager</code></a> instance.
<p>
Uses <a href="#CONTAINER_PROVIDER_CLASSNAME"><code>CONTAINER_PROVIDER_CLASSNAME</code></a> as container implementation, thus relevant module needs
to be on classpath. Setting different container is possible via <a href="#createClient(java.lang.String)"><code>createClient(String)</code></a>}.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#createClient(java.lang.String)"><code>createClient(String)</code></a></dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="createClient()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createClient</h4>
<pre class="methodSignature">public static <a href="ClientManager.html" title="class in org.glassfish.tyrus.client">ClientManager</a> createClient()</pre>
<div class="block">Create new <a href="ClientManager.html" title="class in org.glassfish.tyrus.client"><code>ClientManager</code></a> instance.
<p>
Uses <a href="#CONTAINER_PROVIDER_CLASSNAME"><code>CONTAINER_PROVIDER_CLASSNAME</code></a> as container implementation, thus relevant module needs
to be on classpath. Setting different container is possible via <a href="#createClient(java.lang.String)"><code>createClient(String)</code></a>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>created client manager.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#createClient(java.lang.String)"><code>createClient(String)</code></a></dd>
</dl>
</li>
</ul>
<a id="createClient(jakarta.websocket.WebSocketContainer)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createClient</h4>
<pre class="methodSignature">public static <a href="ClientManager.html" title="class in org.glassfish.tyrus.client">ClientManager</a> createClient​(<a href="../../../../jakarta/websocket/WebSocketContainer.html" title="interface in jakarta.websocket">WebSocketContainer</a> webSocketContainer)</pre>
<div class="block">Create new ClientManager instance on top of provided <a href="../../../../jakarta/websocket/WebSocketContainer.html" title="interface in jakarta.websocket"><code>WebSocketContainer</code></a> instance.
<p>
Uses <a href="#CONTAINER_PROVIDER_CLASSNAME"><code>CONTAINER_PROVIDER_CLASSNAME</code></a> as container implementation, thus relevant module needs
to be on classpath. Setting different container is possible via <a href="#createClient(java.lang.String)"><code>createClient(String)</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>webSocketContainer</code> - websocket container.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>created client manager.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="#createClient(java.lang.String)"><code>createClient(String)</code></a></dd>
</dl>
</li>
</ul>
<a id="createClient(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createClient</h4>
<pre class="methodSignature">public static <a href="ClientManager.html" title="class in org.glassfish.tyrus.client">ClientManager</a> createClient​(java.lang.String containerProviderClassName)</pre>
<div class="block">Create new ClientManager instance.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>containerProviderClassName</code> - classname of container provider. It will be loaded using context class loader.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>new ClientManager instance.</dd>
</dl>
</li>
</ul>
<a id="createClient(java.lang.String,jakarta.websocket.WebSocketContainer)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createClient</h4>
<pre class="methodSignature">public static <a href="ClientManager.html" title="class in org.glassfish.tyrus.client">ClientManager</a> createClient​(java.lang.String containerProviderClassName,
<a href="../../../../jakarta/websocket/WebSocketContainer.html" title="interface in jakarta.websocket">WebSocketContainer</a> webSocketContainer)</pre>
<div class="block">Create new ClientManager instance on top of provided <a href="../../../../jakarta/websocket/WebSocketContainer.html" title="interface in jakarta.websocket"><code>WebSocketContainer</code></a> instance.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>containerProviderClassName</code> - classname of container provider. It will be loaded using context class loader.</dd>
<dd><code>webSocketContainer</code> - websocket container.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>new ClientManager instance.</dd>
</dl>
</li>
</ul>
<a id="connectToServer(java.lang.Class,java.net.URI)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>connectToServer</h4>
<pre class="methodSignature">public <a href="../../../../jakarta/websocket/Session.html" title="interface in jakarta.websocket">Session</a> connectToServer​(java.lang.Class annotatedEndpointClass,
java.net.URI path)
throws <a href="../../../../jakarta/websocket/DeploymentException.html" title="class in jakarta.websocket">DeploymentException</a>,
java.io.IOException</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../jakarta/websocket/WebSocketContainer.html#connectToServer(java.lang.Class,java.net.URI)">WebSocketContainer</a></code></span></div>
<div class="block">Connect the supplied annotated endpoint to its server. The supplied object must be a class decorated with the
class level <a href="../../../../jakarta/websocket/ClientEndpoint.html" title="annotation in jakarta.websocket"><code>ClientEndpoint</code></a> annotation. This method blocks until the connection is
established, or throws an error if either the connection could not be made or there was a problem with the
supplied endpoint class.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../jakarta/websocket/WebSocketContainer.html#connectToServer(java.lang.Class,java.net.URI)">connectToServer</a></code> in interface <code><a href="../../../../jakarta/websocket/WebSocketContainer.html" title="interface in jakarta.websocket">WebSocketContainer</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>annotatedEndpointClass</code> - the annotated websocket client endpoint.</dd>
<dd><code>path</code> - the complete path to the server endpoint.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the Session created if the connection is successful.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../jakarta/websocket/DeploymentException.html" title="class in jakarta.websocket">DeploymentException</a></code> - if the class is not a valid annotated endpoint class.</dd>
<dd><code>java.io.IOException</code> - if there was a network or protocol problem that prevented the client endpoint being
connected to its server.</dd>
</dl>
</li>
</ul>
<a id="connectToServer(java.lang.Class,jakarta.websocket.ClientEndpointConfig,java.net.URI)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>connectToServer</h4>
<pre class="methodSignature">public <a href="../../../../jakarta/websocket/Session.html" title="interface in jakarta.websocket">Session</a> connectToServer​(java.lang.Class<? extends <a href="../../../../jakarta/websocket/Endpoint.html" title="class in jakarta.websocket">Endpoint</a>> endpointClass,
<a href="../../../../jakarta/websocket/ClientEndpointConfig.html" title="interface in jakarta.websocket">ClientEndpointConfig</a> cec,
java.net.URI path)
throws <a href="../../../../jakarta/websocket/DeploymentException.html" title="class in jakarta.websocket">DeploymentException</a>,
java.io.IOException</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../jakarta/websocket/WebSocketContainer.html#connectToServer(java.lang.Class,jakarta.websocket.ClientEndpointConfig,java.net.URI)">WebSocketContainer</a></code></span></div>
<div class="block">Connect the supplied programmatic endpoint to its server with the given configuration. This method blocks until
the connection is established, or throws an error if the connection could not be made.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
<dd><code><a href="../../../../jakarta/websocket/WebSocketContainer.html#connectToServer(java.lang.Class,jakarta.websocket.ClientEndpointConfig,java.net.URI)">connectToServer</a></code> in interface <code><a href="../../../../jakarta/websocket/WebSocketContainer.html" title="interface in jakarta.websocket">WebSocketContainer</a></code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>endpointClass</code> - the programmatic client endpoint class <a href="../../../../jakarta/websocket/Endpoint.html" title="class in jakarta.websocket"><code>Endpoint</code></a>.</dd>
<dd><code>cec</code> - the configuration used to configure the programmatic endpoint.</dd>
<dd><code>path</code> - the complete path to the server endpoint.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the Session created if the connection is successful.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../jakarta/websocket/DeploymentException.html" title="class in jakarta.websocket">DeploymentException</a></code> - if the configuration is not valid</dd>
<dd><code>java.io.IOException</code> - if there was a network or protocol problem that prevented the client endpoint being
connected to its server</dd>
</dl>
</li>
</ul>
<a id="connectToServer(jakarta.websocket.Endpoint,jakarta.websocket.ClientEndpointConfig,java.net.URI)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>connectToServer</h4>
<pre class="methodSignature">public <a href="../../../../jakarta/websocket/Session.html" title="interface in jakarta.websocket">Session</a> connectToServer​(<a href="../../../../jakarta/websocket/Endpoint.html" title="class in jakarta.websocket">Endpoint</a> endpointInstance,
<a href="../../../../jakarta/websocket/ClientEndpointConfig.html" title="interface in jakarta.websocket">ClientEndpointConfig</a> cec,
java.net.URI path)
throws <a href="../../../../jakarta/websocket/DeploymentException.html" title="class in jakarta.websocket">DeploymentException</a>,
java.io.IOException</pre>
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../jakarta/websocket/WebSocketContainer.html#connectToServer(jakarta.websocket.Endpoint,jakarta.websocket.ClientEndpointConfig,java.net.URI)">WebSocketContainer</a></code></span></div>
<div class="block">Connect the supplied programmatic client endpoint instance to its server with the given configuration. This
method blocks until the connection is established, or throws an error if the connection could not be made. If the
developer uses this method to deploy the client endpoint, services like dependency injection that are supported,
for example, when the implementation is part of the Java EE platform may not be available. If the client endpoint
uses dependency injection, use
<a href="../../../../jakarta/websocket/WebSocketContainer.html#connectToServer(java.lang.Class,jakarta.websocket.ClientEndpointConfig,java.net.URI)"><code>WebSocketContainer.connectToServer(java.lang.Class, jakarta.websocket.ClientEndpointConfig, java.net.URI)</code></a>