Class GsonReader<T>

java.lang.Object
one.microstream.storage.restclient.jersey.GsonReader<T>
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<T>

@Provider
@Consumes("application/json")
public class GsonReader<T>
extends Object
implements javax.ws.rs.ext.MessageBodyReader<T>
  • Constructor Details

  • Method Details

    • isReadable

      public boolean isReadable​(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
      Specified by:
      isReadable in interface javax.ws.rs.ext.MessageBodyReader<T>
    • readFrom

      public T readFrom​(Class<T> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,​String> httpHeaders, InputStream entityStream) throws IOException, javax.ws.rs.WebApplicationException
      Specified by:
      readFrom in interface javax.ws.rs.ext.MessageBodyReader<T>
      Throws:
      IOException
      javax.ws.rs.WebApplicationException