Home » Tag Archives: JAX-RS (page 3)

Tag Archives: JAX-RS

JAX-RS 2.0 : Custom Content Handling

java-interview-questions-answers

I tried to think of a better title, but failed to come up with one ! Please bear with me……. The JAX-RS 2.0 specification allows us to seamlessly marshal/unmarshal JAXB objects to/from HTTP request/response bodies. Simply put, we can just work with the domain objects without being worried about the low level XML serialization within JAX-RS based solutions. Before we begin, ...

Read More »

Creating a simple JAX-RS MessageBodyWriter

java-interview-questions-answers

JAX-RS is really cool and with the help of JAXB a lot of response data types can be converted for you simply by adding annotating the data objects with JAXB annotations.  I am fairly new at JAXB but some simple cut/paste of annotations will take you a long way. There maybe some types of data that you can’t or won’t ...

Read More »

Implementing Jersey 2 Spring integration

spring-interview-questions-answers

Jersey is the excellent Java JAX-RS specification reference implementation from Oracle. Last year, when we were starting to build RESTful backend web services for a high-volume website, we chose to use the JAX-RS API as our REST framework and Spring framework for dependency injection. Jersey was our JAX-RS implementation of choice. When the project was started JAX-RS API 2.0 specification ...

Read More »

Transparent PATCH support in JAX-RS 2.0

java-interview-questions-answers

The PATCH method is one the the less well loved HTTP methods simple because until recently there really wasn’t a standard PATCH format. This has been standardized for JSON for a while now so there are quite a few libraries that will do the heavy lifting for you. For the purposes of this blog I am going to use json-patch ...

Read More »

HTTP Caching using JAX-RS

java-interview-questions-answers

In the last blog we discussed different types of caches and their use cases. In this post we will explore how we can leverage caching using HTTP response headers and the support provided by JAX-RS. Expires Header In HTTP 1.0, a simple response header called Expires would tell the browser how long it can cache an object or page. It ...

Read More »

Swagger: make developers love working with your REST API

java-interview-questions-answers

As JAX-RS API is evolving, with version 2.0 released earlier this year under JSR-339 umbrella, it’s becoming even more easy to create REST services using excellent Java platform. But with great simplicity comes great responsibility: documenting all these APIs so other developers could quickly understand how to use them. Unfortunately, in this area developers are on their own: the JSR-339 ...

Read More »

JAAS-secured JAX-RS end point

java-interview-questions-answers

With the advent of RESTFUL (JAX-RS) as the “preferred” way to create web service end points, for a long time I have always wondered how people implement security mechanism around it. At the end of the day, I presume the underlying implementation of JAX-RS is servlet, and therefore its security might also be around what is already provided by the ...

Read More »

Grails – RESTful Webservice using JAX-RS plugin

grails-logo

I discussed about RESTful architecture consideration and how to build RESTful web services using Jersey JAX-RS [JSR 311]  in JAVA. Today I am going to discuss how to build the RESTful web services using Grails framework. GRAILs framework is the platform which provides end to end solution to build web application from scratch to advance intuitive RIA web application. Grails ...

Read More »

RESTful Webservices with Jersey

java-interview-questions-answers

I have discussed my earlier article about architectural consideration<<link>> to become a RESTful system on distributed environment that are usable my system/machines. This article we are going to discuss how to build web services based on REST architecture consideration. This tutorial explains how to develop RESTful web services in Java with the Tomcat 6, Eclipse and Jersey a JAX-RS (JSR ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close