Class CumulocityJSONMessageBodyReader
- java.lang.Object
-
- com.cumulocity.sdk.client.rest.providers.CumulocityJSONMessageBodyReader
-
- All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<BaseResourceRepresentation>
@Provider public class CumulocityJSONMessageBodyReader extends Object implements javax.ws.rs.ext.MessageBodyReader<BaseResourceRepresentation>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CumulocityJSONMessageBodyReader.JSONParserAdapter
-
Constructor Summary
Constructors Constructor Description CumulocityJSONMessageBodyReader()
CumulocityJSONMessageBodyReader(CumulocityJSONMessageBodyReader.JSONParserAdapter unmarshaller)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
BaseResourceRepresentation
readFrom(Class<BaseResourceRepresentation> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream)
-
-
-
Constructor Detail
-
CumulocityJSONMessageBodyReader
public CumulocityJSONMessageBodyReader(CumulocityJSONMessageBodyReader.JSONParserAdapter unmarshaller)
-
CumulocityJSONMessageBodyReader
public CumulocityJSONMessageBodyReader()
-
-
Method Detail
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType)
- Specified by:
isReadable
in interfacejavax.ws.rs.ext.MessageBodyReader<BaseResourceRepresentation>
-
readFrom
public BaseResourceRepresentation readFrom(Class<BaseResourceRepresentation> type, Type genericType, Annotation[] annotations, javax.ws.rs.core.MediaType mediaType, javax.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream) throws javax.ws.rs.WebApplicationException
- Specified by:
readFrom
in interfacejavax.ws.rs.ext.MessageBodyReader<BaseResourceRepresentation>
- Throws:
javax.ws.rs.WebApplicationException
-
-