Class JsonMessageBodyReader
- java.lang.Object
-
- org.vx68k.bitbucket.api.client.internal.JsonMessageBodyReader
-
- All Implemented Interfaces:
MessageBodyReader<JsonStructure>
@Consumes("application/json") public final class JsonMessageBodyReader extends Object implements MessageBodyReader<JsonStructure>
MessageBodyReader
forJsonStructure
objects.- Since:
- 5.0
- Author:
- Kaz Nishimura
-
-
Constructor Summary
Constructors Constructor Description JsonMessageBodyReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
JsonStructure
readFrom(Class<JsonStructure> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
-
-
-
Method Detail
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType)
- Specified by:
isReadable
in interfaceMessageBodyReader<JsonStructure>
-
readFrom
public JsonStructure readFrom(Class<JsonStructure> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
- Specified by:
readFrom
in interfaceMessageBodyReader<JsonStructure>
-
-