com.netflix.discovery.converters
Class EntityBodyConverter

java.lang.Object
  extended by com.netflix.discovery.converters.EntityBodyConverter
All Implemented Interfaces:
ISerializer

public class EntityBodyConverter
extends java.lang.Object
implements ISerializer

A custom jersey provider implementation for eureka.

The implementation uses Xstream to provide serialization/deserialization capabilities. If the users to wish to provide their own implementation they can do so by plugging in their own provider here and annotating their classes with that provider by specifying the Serializer annotation.


Constructor Summary
EntityBodyConverter()
           
 
Method Summary
 java.lang.Object read(java.io.InputStream is, java.lang.Class type, javax.ws.rs.core.MediaType mediaType)
           
 void write(java.lang.Object object, java.io.OutputStream os, javax.ws.rs.core.MediaType mediaType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityBodyConverter

public EntityBodyConverter()
Method Detail

read

public java.lang.Object read(java.io.InputStream is,
                             java.lang.Class type,
                             javax.ws.rs.core.MediaType mediaType)
                      throws java.io.IOException
Specified by:
read in interface ISerializer
Throws:
java.io.IOException

write

public void write(java.lang.Object object,
                  java.io.OutputStream os,
                  javax.ws.rs.core.MediaType mediaType)
           throws java.io.IOException
Specified by:
write in interface ISerializer
Throws:
java.io.IOException