Class 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.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object read​(java.io.InputStream is, java.lang.Class type, jakarta.ws.rs.core.MediaType mediaType)  
      void write​(java.lang.Object object, java.io.OutputStream os, jakarta.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,
                                     jakarta.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,
                          jakarta.ws.rs.core.MediaType mediaType)
                   throws java.io.IOException
        Specified by:
        write in interface ISerializer
        Throws:
        java.io.IOException