Class CumulocityJSONMessageBodyReader
java.lang.Object
com.cumulocity.sdk.client.rest.providers.CumulocityJSONMessageBodyReader
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<BaseResourceRepresentation>
@Provider
public class CumulocityJSONMessageBodyReader
extends Object
implements jakarta.ws.rs.ext.MessageBodyReader<BaseResourceRepresentation>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionboolean
isReadable
(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) readFrom
(Class<BaseResourceRepresentation> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream)
-
Constructor Details
-
CumulocityJSONMessageBodyReader
public CumulocityJSONMessageBodyReader(CumulocityJSONMessageBodyReader.JSONParserAdapter unmarshaller) -
CumulocityJSONMessageBodyReader
public CumulocityJSONMessageBodyReader()
-
-
Method Details
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isReadable
in interfacejakarta.ws.rs.ext.MessageBodyReader<BaseResourceRepresentation>
-
readFrom
public BaseResourceRepresentation readFrom(Class<BaseResourceRepresentation> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws jakarta.ws.rs.WebApplicationException- Specified by:
readFrom
in interfacejakarta.ws.rs.ext.MessageBodyReader<BaseResourceRepresentation>
- Throws:
jakarta.ws.rs.WebApplicationException
-