Registry / web-framework / jersey-core

jersey-core

JSON →
library1.19.4javamavenunverified

Jersey Core is the reference implementation of JAX-RS (JSR 311) for building RESTful web services, provided under the Sun/Oracle namespace.

<dependency> <groupId>com.sun.jersey</groupId> <artifactId>jersey-core</artifactId> <version>1.19.4</version> </dependency>
INSTALL
IMPORT
SIG · JERSEY-CORE
J
jersey-core
web-frameworkjavav1.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.

Client
com.sun.jersey.api.client.Client

Creates a Jersey client and makes a GET request to a REST endpoint.

import com.sun.jersey.api.client.Client; import com.sun.jersey.api.client.WebResource; public class Main { public static void main(String[] args) { Client client = Client.create(); WebResource resource = client.resource("https://api.example.com/data"); String response = resource.get(String.class); System.out.println("Response: " + response); } }
Debug
Known issues
breakingThis artifact uses the old com.sun.jersey namespace; consider migrating to org.glassfish.jersey for newer versions.
fix
Replace com.sun.jersey:jersey-core with org.glassfish.jersey.core:jersey-client for JAX-RS 2.x.
affects: all
Upgrade
Version history
1.19.4latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Amazon
1
Google (search)
1
Resources
jersey-core — mvn dependency:get jersey-core · libregistry