Package org.nuxeo.jaxrs.test
Class JerseyClientHelper
- java.lang.Object
-
- org.nuxeo.jaxrs.test.JerseyClientHelper
-
@Deprecated(since="2023.13", forRemoval=true) public final class JerseyClientHelper extends Object
Deprecated, for removal: This API element is subject to removal in a future version.since 2023.13, useHttpClientTestRuleinsteadHelper for using the Jersey 1Client.- Since:
- 9.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classJerseyClientHelper.ApacheHttpClientBuilderDeprecated, for removal: This API element is subject to removal in a future version.
-
Field Summary
Fields Modifier and Type Field Description static com.sun.jersey.api.client.ClientDEFAULT_CLIENTDeprecated, for removal: This API element is subject to removal in a future version.Default instance of a Jersey 1Clientrelying on the Apache HTTP client,DEFAULT_CONNECTION_TIMEOUTfor the connection timeout parameters and no authentication.static intDEFAULT_CONNECTION_TIMEOUTDeprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static JerseyClientHelper.ApacheHttpClientBuilderclientBuilder()Deprecated, for removal: This API element is subject to removal in a future version.Allows to build a custom instance of a Jersey 1Clientrelying on the Apache HTTP client.
-
-
-
Field Detail
-
DEFAULT_CONNECTION_TIMEOUT
public static final int DEFAULT_CONNECTION_TIMEOUT
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
- Constant Field Values
-
DEFAULT_CLIENT
public static final com.sun.jersey.api.client.Client DEFAULT_CLIENT
Deprecated, for removal: This API element is subject to removal in a future version.Default instance of a Jersey 1Clientrelying on the Apache HTTP client,DEFAULT_CONNECTION_TIMEOUTfor the connection timeout parameters and no authentication.
-
-
Method Detail
-
clientBuilder
public static JerseyClientHelper.ApacheHttpClientBuilder clientBuilder()
Deprecated, for removal: This API element is subject to removal in a future version.Allows to build a custom instance of a Jersey 1Clientrelying on the Apache HTTP client.For instance, you can set the connection timeout and credentials for basic authentication by calling:
Client client = JerseyClientHelper.clientBuilder() .setConnectTimeout(5000) .setCredentials("joe", "password") .build();
-
-