Articles Tagged ‘jersey’
Sunday, September 28th, 2014
Because a lot of my current projects are using JAX-RS in different versions I’d like to write down and share some frequently used snippets for implementing RESTful web-services with the JAX-RS specification here.
(more…)
Tags: jackson, javaee, jax-rs, jaxrs, jersey, json, rest, Snippet, xml
Posted in Java, Web Services, XML | No Comments »
Monday, December 30th, 2013
JAX-RS 2.0 aka JSR 339 not also specifies the API to build up a RESTful webservice but also enhances the client side API to easen up the process of writing a client for a REST service.
In the following tutorial we’re building up a client for a ready-to-play REST service and explore the different new options e.g. how to handle requests in a synchronous or asynchronous way, how to add callback handlers for a request, how to specify invocation targets to build up requests for a later execution or how to filter the client-server communication using client request filters and client response filters.
(more…)
Tags: async, asynchronous, filter, glassfish, jackson, jax-rs, jaxrs, jersey, jsr-339, jsr339, rest, server, web, webservice
Posted in Java, Web Services | 13 Comments »
Sunday, October 23rd, 2011
There are many frameworks out there to facilitate testing RESTful webservices but there is one framework I’d like to acquaint you with my favourite framework named REST-assured.
REST-assured offers a bunch of nice features like a DSL-like syntax, XPath-Validation, Specification Reuse, easy file uploads and those features we’re going to explore in the following article.
With a few lines of code and Jersey I have written a RESTful web service that allows us to explore the features of the REST-assured framework and to run tests against this service.
(more…)
Tags: groovy, jax-rs, jaxb, jaxrs, jersey, rest, rest-assured, tomcat, webservice, ws
Posted in Java, Web Services | 113 Comments »
Monday, September 5th, 2011
Today we’re going to take a look at two specific frameworks that enables you to efficiently test your REST-ful services: On the one side there is the framework REST-assured that offers a nice DSL-like syntax to create well readable tests – on the other side there is the Jersey-Test-Framework that offers a nice execution environment and is built upon the JAX-RS reference implementation, Jersey.
In the following tutorial we’re going to create a simple REST service first and then implement integration tests for this service using both frameworks.
The title of this article might be misleading due to the fact that I am not going to compare both frameworks to choose a winner, just showing the different approach ..
(more…)
Tags: hamcrest, integrationtest, jax-b, jax-rs, jaxb, jaxrs, jersey, junit, rest, rest-assured, restful, service, test
Posted in Java, Web Services | 30 Comments »
Thursday, November 25th, 2010
Often in a developer’s life there is a REST service to deal with and nowadays one wants a fast and clean solution to create a client for such a service.
The following tutorial shows a quick approach using JAX-RS with its reference implementation, Jersey in combination with JAX-B for annotation driven marshalling between XML or JSON structures and our Java-Beans.
(more…)
Tags: jax-b, jax-rs, jaxrs, jersey, jsr-311, marshalling, maven, rest, tutorial, webservice
Posted in Java, Web Services | 9 Comments »