Package org.nuxeo.jaxrs.test
Class JerseyClientHelper
java.lang.Object
org.nuxeo.jaxrs.test.JerseyClientHelper
Deprecated, for removal: This API element is subject to removal in a future version.
Helper for using the Jersey 1
Client
.- Since:
- 9.3
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Deprecated, for removal: This API element is subject to removal in a future version. -
Field Summary
Modifier and TypeFieldDescriptionstatic final com.sun.jersey.api.client.Client
Deprecated, for removal: This API element is subject to removal in a future version.Default instance of a Jersey 1Client
relying on the Apache HTTP client,DEFAULT_CONNECTION_TIMEOUT
for the connection timeout parameters and no authentication.static final int
Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Allows to build a custom instance of a Jersey 1Client
relying on the Apache HTTP client.
-
Field Details
-
DEFAULT_CONNECTION_TIMEOUT
public static final int DEFAULT_CONNECTION_TIMEOUTDeprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
DEFAULT_CLIENT
public static final com.sun.jersey.api.client.Client DEFAULT_CLIENTDeprecated, for removal: This API element is subject to removal in a future version.Default instance of a Jersey 1Client
relying on the Apache HTTP client,DEFAULT_CONNECTION_TIMEOUT
for the connection timeout parameters and no authentication.
-
-
Method Details
-
clientBuilder
Deprecated, for removal: This API element is subject to removal in a future version.Allows to build a custom instance of a Jersey 1Client
relying 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();
-
HttpClientTestRule
instead