Home » Enterprise Java » rest » jersey

jersey

Creating JAX-RS web service using Jersey Example

Introduction Jersey as it states in the website, is more than just a reference implementation. It also has it’s own API that extends the specification toolkit with additional wrapped features and utilities to simplify RESTful service and client development. It also exposes numerous extension SPIs so that developers may extend Jersey to best suit their needs. For this post, we’re ...

Read More »

JSON Example With Jersey + Jackson

In this tutorial we are going to see how you can integrate Jesrsey with Jackson to develop  JAX-RS RESTful services that produce and consume JSON streams. As you probably know, Jackson is used to marshal a Java Object to JSON, and ummarshal a JSON file (or stream in general) to a Java Object In this example we are not going to ...

Read More »

XML Example With Jersey + JAXB

In this example we are going to see how you can integrate Jersey with JAXB (Java Architecture for XML Binding) to create RESTful services that consume and produce XML streams. As you probably know JAXB is used to marshal a Java Object to XML, and ummarshal an XML file (or stream in general) to Java Object. You don’t have to ...

Read More »

Jersey File Upload Example

In this example we are going to see how you can upload a File to a server using a JAX-RS REST Service using Jersey. Uploading a File using Jersey is fairly easy, as it uses all the HTTP infrastructure for file upload operations. In this example we are going to use an HTML Form that has one input field of ...

Read More »

JAX-RS @QueryParam Example

In this example we are going to talk about how you can [email protected] to parse URI Query Parameters in a JAX-RS RESTful service. Basically,[email protected] that the value of the Query Parameter with the corresponding name will be parsed, and if parsed correctly it will be available on the method argument denoted [email protected] There are baically two ways to pass parameters in ...

Read More »

Jersey Hello World Example

In this example we are going to get started with Java API for RESTful Web Services (JAX-RS), a set of APIs to developer REST services. JAX-RS is part of the Java EE.  REST (REpresentational State Transfer) is a simple stateless architecture that generally runs over HTTP. REST-style architectures conventionally consist of clients and servers. Clients initiate requests to servers; servers process ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns