Registry / http-client / jersey-apache-client4

jersey-apache-client4

JSON →
library1.19.4javamavenunverified

Jersey extension that integrates Apache HttpClient 4.x as the underlying HTTP client for RESTful web service communication.

<dependency> <groupId>com.sun.jersey.contribs</groupId> <artifactId>jersey-apache-client4</artifactId> <version>1.19.4</version> </dependency>
INSTALL
IMPORT
SIG · JERSEY-APACHE-CLIE
J
jersey-apache-client4
http-clientjavav1.19.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ApacheHttpClient4
✓ com.sun.jersey.client.apache4.ApacheHttpClient4

Creates an Apache HttpClient 4-based Jersey client and performs a GET request.

import com.sun.jersey.client.apache4.ApacheHttpClient4; import com.sun.jersey.api.client.Client; public class Example { public static void main(String[] args) { Client client = ApacheHttpClient4.create(); String response = client.resource("https://api.example.com").get(String.class); System.out.println(response); } }
Debug
Known issues
breakingThis is a legacy Jersey 1.x extension; Jersey 2.x uses a different client API.
fix
For Jersey 2.x, use org.glassfish.jersey.core:jersey-client with ApacheConnectorProvider.
affects: >=1.0
Upgrade
Version history
1.19.4latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
Resources
jersey-apache-client4 — mvn dependency:get jersey-apache-client4 · libregistry