tree: f4434c1aa262027907d082949200ceecc6c309c9 [path history] [tgz]
  1. src/
  2. pom.xml
  3. README.md
incubator/kryo/README.md

This is experimental module that provides JAX-RS Message Body Writer & Reader using Kryo serialization framework.

How to use it

Add dependency to the module:

<dependency>
    <groupId>org.glassfish.jersey.media</groupId>
    <artifactId>jersey-media-kryo</artifactId>
    <version>${jersey.version}</version>
</dependency>

And now you can consume or produce entities (de)serialized by Kryo. Just use application/x-kryo MIME type, e.g.:

@Path("/rest")
@Consumes("application/x-kryo")
@Produces("application/x-kryo")
public class MyResource { ... }