Java API for RESTful Web Services 2.1 Released
Java API for RESTful Web Services 2.1 Released
Written by Alex Armstrong   
Tuesday, 29 August 2017

JAX-RS 2.1 Java API for RESTful Web Services  has been released with support for server-sent events, JSON-B and improved support for JSON-P.

The API will also have a reactive extension to the client API, with built-in support for Java 8 CompletionStage and an extension point for other reactive APIs like RxJava.

 

java

The major feature, server-sent-event (SSE) resources, inject a special type called SseEventSink and produce text/event-stream. SSE clients use a SseEventSource to read events from a connection. Santiago Pericas-Geertsen, a principal member of technical staff at Oracle and the specifications lead for JAX-RS 2.1 explains:

This mechanism uses long-lived connections and broadcasting, which provides improved performance over polling and resource-intensive, short-lived connections.

He noted the following points: 

  • JAX-RS 2.1 is fully backward compatible with previous releases.

  • The new features integrate very well with the existing JAX-RS concepts. For example, simply injecting a method call in a client invocation can switch processing from synchronous to reactive.

  • SSE relies on streaming HTTP-based connections so it is a natural extension to the existing APIs.

The specifications for the release also include annotations for POJOs, flexible API with high-level support for common HTTP usage patterns and applications including WebDAV and the Atom Publishing Protocol and that the API supports various HTTP entity body content types, servlet containers and JAX-WS Providers. The API will support Java EE features and components within a web resource class.

Since the API uses annotations and lambda expressions extensively, it supports applications developed in Java SE 8 or later.

 

java

 

 

More Information

Download JAX-RS 2.1

JAX-RS 2.1 Specification

Related Articles

Java Turns 22

Modular Java Finally Approved

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on, Twitter, FacebookGoogle+ or Linkedin.

 

Banner


Go At Eight
14/11/2017

Go is celebrating its 8th birthday today and has a lot to celebrate as it continues to gain in popularity and to add features that consolidates its position as the language of cloud infrastructure.



Open Source Sparse Tensor Computation Is Fast
01/11/2017

Tensors are data tables in n dimensions and when they occur they are often sparse, i.e. most of the entries are zero. In the past we have hand-crafted code to work efficiently with sparse tensors, but [ ... ]


More News

 
 

 

blog comments powered by Disqus

Last Updated ( Tuesday, 29 August 2017 )
 
 

   
Banner
Banner
RSS feed of news items only
I Programmer News
Copyright © 2017 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.