Skip to content

Commit 444a91c

Browse files
committed
Updated documentation and javadoc for Connectors
Signed-off-by: jansupol <jan.supol@oracle.com>
1 parent b0e7b1e commit 444a91c

File tree

15 files changed

+949
-40
lines changed

15 files changed

+949
-40
lines changed

bundles/apidocs/pom.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,21 @@
5858
<artifactId>jersey-apache-connector</artifactId>
5959
<version>${project.version}</version>
6060
</dependency>
61+
<dependency>
62+
<groupId>org.glassfish.jersey.connectors</groupId>
63+
<artifactId>jersey-apache5-connector</artifactId>
64+
<version>${project.version}</version>
65+
</dependency>
6166
<dependency>
6267
<groupId>org.glassfish.jersey.connectors</groupId>
6368
<artifactId>jersey-grizzly-connector</artifactId>
6469
<version>${project.version}</version>
6570
</dependency>
71+
<dependency>
72+
<groupId>org.glassfish.jersey.connectors</groupId>
73+
<artifactId>jersey-helidon-connector</artifactId>
74+
<version>${project.version}</version>
75+
</dependency>
6676
<dependency>
6777
<groupId>org.glassfish.jersey.connectors</groupId>
6878
<artifactId>jersey-jdk-connector</artifactId>
@@ -190,6 +200,11 @@
190200
<artifactId>jersey-mp-config</artifactId>
191201
<version>${project.version}</version>
192202
</dependency>
203+
<dependency>
204+
<groupId>org.glassfish.jersey.ext.microprofile</groupId>
205+
<artifactId>jersey-mp-rest-client</artifactId>
206+
<version>${project.version}</version>
207+
</dependency>
193208
<dependency>
194209
<groupId>org.glassfish.jersey.ext</groupId>
195210
<artifactId>jersey-wadl-doclet</artifactId>

connectors/apache-connector/src/main/java/org/glassfish/jersey/apache/connector/ApacheClientProperties.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2020 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -89,8 +89,8 @@ public final class ApacheClientProperties {
8989

9090
/**
9191
* A value of {@code true} indicates that configured connection manager should be shared
92-
* among multiple Jersey {@link org.glassfish.jersey.client.ClientRuntime} instances. It means that closing
93-
* a particular {@link org.glassfish.jersey.client.ClientRuntime} instance does not shut down the underlying
92+
* among multiple Jersey {@code ClientRuntime} instances. It means that closing
93+
* a particular {@code ClientRuntime} instance does not shut down the underlying
9494
* connection manager automatically. In such case, the connection manager life-cycle
9595
* should be fully managed by the application code. To release all allocated resources,
9696
* caller code should especially ensure {@link org.apache.http.conn.HttpClientConnectionManager#shutdown()} gets
@@ -114,7 +114,7 @@ public final class ApacheClientProperties {
114114
* <p/>
115115
* The value MUST be an instance of {@link org.apache.http.client.config.RequestConfig}.
116116
* <p/>
117-
* If the property is absent default request configuration will be used.
117+
* If the property is absent the default request configuration will be used.
118118
* <p/>
119119
* The name of the configuration property is <tt>{@value}</tt>.
120120
*
@@ -137,9 +137,9 @@ public final class ApacheClientProperties {
137137
/**
138138
* ConnectionReuseStrategy for the {@link org.apache.http.client.HttpClient}.
139139
* <p/>
140-
* The value MUST be an instance of {@link org.apache.http.impl.ConnectionReuseStrategy}.
140+
* The value MUST be an instance of {@link org.apache.http.ConnectionReuseStrategy}.
141141
* <p/>
142-
* If the property is absent the default reuse strategy of the Apache HTTP library will be used
142+
* If the property is absent the default reuse strategy of the Apache HTTP library will be used.
143143
* <p/>
144144
* The name of the configuration property is <tt>{@value}</tt>.
145145
*/
@@ -158,7 +158,9 @@ public final class ApacheClientProperties {
158158

159159

160160
/**
161-
* Strategy that closes the Apache Connection. Accepts an instance of {@link ApacheConnectionClosingStrategy}.
161+
* <p>
162+
* Strategy that closes the Apache Connection. Accepts an instance of {@link ApacheConnectionClosingStrategy}.
163+
* </p>
162164
*
163165
* @see ApacheConnectionClosingStrategy
164166
* @since 2.30

connectors/apache-connector/src/main/java/org/glassfish/jersey/apache/connector/ApacheConnector.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,18 +110,22 @@
110110
* <p/>
111111
* The following properties are only supported at construction of this class:
112112
* <ul>
113+
* <li>{@link ApacheClientProperties#CONNECTION_CLOSING_STRATEGY}</li>
113114
* <li>{@link ApacheClientProperties#CONNECTION_MANAGER}</li>
114-
* <li>{@link ApacheClientProperties#REQUEST_CONFIG}</li>
115+
* <li>{@link ApacheClientProperties#CONNECTION_MANAGER_SHARED}</li>
116+
* <li>{@link ApacheClientProperties#CONNECTION_CLOSING_STRATEGY}</li>
115117
* <li>{@link ApacheClientProperties#CREDENTIALS_PROVIDER}</li>
116118
* <li>{@link ApacheClientProperties#DISABLE_COOKIES}</li>
117119
* <li>{@link ApacheClientProperties#KEEPALIVE_STRATEGY}</li>
120+
* <li>{@link ApacheClientProperties#PREEMPTIVE_BASIC_AUTHENTICATION}</li>
118121
* <li>{@link org.glassfish.jersey.client.ClientProperties#PROXY_URI}</li>
119122
* <li>{@link org.glassfish.jersey.client.ClientProperties#PROXY_USERNAME}</li>
120123
* <li>{@link org.glassfish.jersey.client.ClientProperties#PROXY_PASSWORD}</li>
121124
* <li>{@link org.glassfish.jersey.client.ClientProperties#REQUEST_ENTITY_PROCESSING} - default value is {@link org.glassfish.jersey.client.RequestEntityProcessing#CHUNKED}</li>
122-
* <li>{@link ApacheClientProperties#PREEMPTIVE_BASIC_AUTHENTICATION}</li>
125+
* <li>{@link ApacheClientProperties#REQUEST_CONFIG}</li>
123126
* <li>{@link ApacheClientProperties#RETRY_HANDLER}</li>
124127
* <li>{@link ApacheClientProperties#REUSE_STRATEGY}</li>
128+
* <li>{@link ApacheClientProperties#USE_SYSTEM_PROPERTIES}</li>
125129
* </ul>
126130
* <p>
127131
* This connector uses {@link RequestEntityProcessing#CHUNKED chunked encoding} as a default setting. This can

connectors/apache-connector/src/main/java/org/glassfish/jersey/apache/connector/ApacheConnectorProvider.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2019 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -33,19 +33,23 @@
3333
* <p>
3434
* The following connector configuration properties are supported:
3535
* <ul>
36+
* <li>{@link ApacheClientProperties#CONNECTION_CLOSING_STRATEGY}</li>
3637
* <li>{@link ApacheClientProperties#CONNECTION_MANAGER}</li>
37-
* <li>{@link ApacheClientProperties#REQUEST_CONFIG}</li>
38+
* <li>{@link ApacheClientProperties#CONNECTION_MANAGER_SHARED}</li>
39+
* <li>{@link ApacheClientProperties#CONNECTION_CLOSING_STRATEGY}</li>
3840
* <li>{@link ApacheClientProperties#CREDENTIALS_PROVIDER}</li>
3941
* <li>{@link ApacheClientProperties#DISABLE_COOKIES}</li>
4042
* <li>{@link ApacheClientProperties#KEEPALIVE_STRATEGY}</li>
43+
* <li>{@link ApacheClientProperties#PREEMPTIVE_BASIC_AUTHENTICATION}</li>
4144
* <li>{@link org.glassfish.jersey.client.ClientProperties#PROXY_URI}</li>
4245
* <li>{@link org.glassfish.jersey.client.ClientProperties#PROXY_USERNAME}</li>
4346
* <li>{@link org.glassfish.jersey.client.ClientProperties#PROXY_PASSWORD}</li>
4447
* <li>{@link org.glassfish.jersey.client.ClientProperties#REQUEST_ENTITY_PROCESSING}
4548
* - default value is {@link org.glassfish.jersey.client.RequestEntityProcessing#CHUNKED}</li>
46-
* <li>{@link ApacheClientProperties#PREEMPTIVE_BASIC_AUTHENTICATION}</li>
49+
* <li>{@link ApacheClientProperties#REQUEST_CONFIG}</li>
4750
* <li>{@link ApacheClientProperties#RETRY_HANDLER}</li>
4851
* <li>{@link ApacheClientProperties#REUSE_STRATEGY}</li>
52+
* <li>{@link ApacheClientProperties#USE_SYSTEM_PROPERTIES}</li>
4953
* </ul>
5054
* </p>
5155
* <p>

connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5ClientProperties.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ public final class Apache5ClientProperties {
9090

9191
/**
9292
* A value of {@code true} indicates that configured connection manager should be shared
93-
* among multiple Jersey {@link org.glassfish.jersey.client.ClientRuntime} instances. It means that closing
94-
* a particular {@link org.glassfish.jersey.client.ClientRuntime} instance does not shut down the underlying
93+
* among multiple Jersey {@code ClientRuntime} instances. It means that closing
94+
* a particular {@code ClientRuntime} instance does not shut down the underlying
9595
* connection manager automatically. In such case, the connection manager life-cycle
9696
* should be fully managed by the application code. To release all allocated resources,
9797
* caller code should especially ensure {@link org.apache.hc.client5.http.io.HttpClientConnectionManager#close()} gets
@@ -124,7 +124,7 @@ public final class Apache5ClientProperties {
124124
public static final String REQUEST_CONFIG = "jersey.config.apache5.client.requestConfig";
125125

126126
/**
127-
* HttpRequestRetryHandler which will be used to create {@link org.apache.hc.client5.http.classic.HttpClient}.
127+
* HttpRequestRetryStrategy which will be used to create {@link org.apache.hc.client5.http.classic.HttpClient}.
128128
* <p/>
129129
* The value MUST be an instance of {@link org.apache.hc.client5.http.HttpRequestRetryStrategy}.
130130
* <p/>

connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5Connector.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,18 +107,21 @@
107107
* <p/>
108108
* The following properties are only supported at construction of this class:
109109
* <ul>
110+
* <li>{@link Apache5ClientProperties#CONNECTION_CLOSING_STRATEGY}</li>
110111
* <li>{@link Apache5ClientProperties#CONNECTION_MANAGER}</li>
111-
* <li>{@link Apache5ClientProperties#REQUEST_CONFIG}</li>
112-
* <li>{@link Apache5ClientProperties#CREDENTIALS_PROVIDER}</li>
112+
* <li>{@link Apache5ClientProperties#CONNECTION_MANAGER_SHARED}</li>
113113
* <li>{@link Apache5ClientProperties#DISABLE_COOKIES}</li>
114+
* <li>{@link Apache5ClientProperties#CREDENTIALS_PROVIDER}</li>
114115
* <li>{@link Apache5ClientProperties#KEEPALIVE_STRATEGY}</li>
116+
* <li>{@link Apache5ClientProperties#PREEMPTIVE_BASIC_AUTHENTICATION}</li>
115117
* <li>{@link org.glassfish.jersey.client.ClientProperties#PROXY_URI}</li>
116118
* <li>{@link org.glassfish.jersey.client.ClientProperties#PROXY_USERNAME}</li>
117119
* <li>{@link org.glassfish.jersey.client.ClientProperties#PROXY_PASSWORD}</li>
118120
* <li>{@link org.glassfish.jersey.client.ClientProperties#REQUEST_ENTITY_PROCESSING} - default value is {@link org.glassfish.jersey.client.RequestEntityProcessing#CHUNKED}</li>
119-
* <li>{@link Apache5ClientProperties#PREEMPTIVE_BASIC_AUTHENTICATION}</li>
121+
* <li>{@link Apache5ClientProperties#REQUEST_CONFIG}</li>
120122
* <li>{@link Apache5ClientProperties#RETRY_STRATEGY}</li>
121123
* <li>{@link Apache5ClientProperties#REUSE_STRATEGY}</li>
124+
* <li>{@link Apache5ClientProperties#USE_SYSTEM_PROPERTIES}</li>
122125
* </ul>
123126
* <p>
124127
* This connector uses {@link RequestEntityProcessing#CHUNKED chunked encoding} as a default setting. This can

connectors/apache5-connector/src/main/java/org/glassfish/jersey/apache5/connector/Apache5ConnectorProvider.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,22 @@
3232
* <p>
3333
* The following connector configuration properties are supported:
3434
* <ul>
35+
* <li>{@link Apache5ClientProperties#CONNECTION_CLOSING_STRATEGY}</li>
3536
* <li>{@link Apache5ClientProperties#CONNECTION_MANAGER}</li>
36-
* <li>{@link Apache5ClientProperties#REQUEST_CONFIG}</li>
37-
* <li>{@link Apache5ClientProperties#CREDENTIALS_PROVIDER}</li>
37+
* <li>{@link Apache5ClientProperties#CONNECTION_MANAGER_SHARED}</li>
3838
* <li>{@link Apache5ClientProperties#DISABLE_COOKIES}</li>
39+
* <li>{@link Apache5ClientProperties#CREDENTIALS_PROVIDER}</li>
3940
* <li>{@link Apache5ClientProperties#KEEPALIVE_STRATEGY}</li>
41+
* <li>{@link Apache5ClientProperties#PREEMPTIVE_BASIC_AUTHENTICATION}</li>
4042
* <li>{@link org.glassfish.jersey.client.ClientProperties#PROXY_URI}</li>
4143
* <li>{@link org.glassfish.jersey.client.ClientProperties#PROXY_USERNAME}</li>
4244
* <li>{@link org.glassfish.jersey.client.ClientProperties#PROXY_PASSWORD}</li>
4345
* <li>{@link org.glassfish.jersey.client.ClientProperties#REQUEST_ENTITY_PROCESSING}
4446
* - default value is {@link org.glassfish.jersey.client.RequestEntityProcessing#CHUNKED}</li>
45-
* <li>{@link Apache5ClientProperties#PREEMPTIVE_BASIC_AUTHENTICATION}</li>
47+
* <li>{@link Apache5ClientProperties#REQUEST_CONFIG}</li>
4648
* <li>{@link Apache5ClientProperties#RETRY_STRATEGY}</li>
4749
* <li>{@link Apache5ClientProperties#REUSE_STRATEGY}</li>
50+
* <li>{@link Apache5ClientProperties#USE_SYSTEM_PROPERTIES}</li>
4851
* </ul>
4952
* </p>
5053
* <p>

connectors/jdk-connector/src/main/java/org/glassfish/jersey/jdk/connector/JdkConnectorProperties.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2019 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2022 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -60,7 +60,7 @@ public final class JdkConnectorProperties {
6060
* Value is expected to be positive {@link Integer}. Default value is {@value #DEFAULT_MAX_REDIRECTS}.
6161
* <p/>
6262
* HTTP redirection must be enabled by property {@link org.glassfish.jersey.client.ClientProperties#FOLLOW_REDIRECTS},
63-
* otherwise {@code MAX_HEADER_SIZE} is not applied.
63+
* otherwise {@code MAX_REDIRECTS} is not applied.
6464
*
6565
* @see org.glassfish.jersey.client.ClientProperties#FOLLOW_REDIRECTS
6666
* @see org.glassfish.jersey.jdk.connector.internal.RedirectException
@@ -70,14 +70,14 @@ public final class JdkConnectorProperties {
7070
/**
7171
* To set the cookie policy of this cookie manager.
7272
* <p/>
73-
* The default value is ACCEPT_ORIGINAL_SERVER.
73+
* The default value is {@link CookiePolicy#ACCEPT_ORIGINAL_SERVER}.
7474
*
7575
* @see java.net.CookieManager
7676
*/
7777
public static final String COOKIE_POLICY = "jersey.config.client.JdkConnectorProvider.cookiePolicy";
7878

7979
/**
80-
* A maximal number of open connection to each destination. A destination is determined by the following triple:
80+
* A maximum number of open connections per each destination. A destination is determined by the following triple:
8181
* <ul>
8282
* <li>host</li>
8383
* <li>port</li>

connectors/jdk-connector/src/main/java/org/glassfish/jersey/jdk/connector/internal/RedirectException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2019 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2022 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -25,7 +25,7 @@
2525
* <ul>
2626
* <li>
2727
* the chained redirection count exceeds the value of
28-
* {@link org.glassfish.jersey.client.JdkConnectorProvider#MAX_REDIRECTS}
28+
* {@link org.glassfish.jersey.jdk.connector.JdkConnectorProperties#MAX_REDIRECTS}
2929
* </li>
3030
* <li>
3131
* or an infinite redirection loop is detected

connectors/jetty-connector/src/main/java/org/glassfish/jersey/jetty/connector/JettyClientProperties.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2013, 2021 Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2013, 2022 Oracle and/or its affiliates. All rights reserved.
33
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0, which is available at
@@ -70,7 +70,7 @@ private JettyClientProperties() {
7070
* that is stored in a truststore.
7171
* <p/>
7272
* The value MUST be an instance of {@link java.lang.Boolean}.
73-
* If the property is absent the default value is {@code true}
73+
* If the property is absent the default value is {@code true}.
7474
*/
7575
public static final String ENABLE_SSL_HOSTNAME_VERIFICATION =
7676
"jersey.config.jetty.client.enableSslHostnameVerification";

0 commit comments

Comments
 (0)