Class CumulocityJSONMessageBodyWriter
java.lang.Object
com.cumulocity.sdk.client.rest.providers.CumulocityJSONMessageBodyWriter
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<BaseResourceRepresentation>
@Provider
public class CumulocityJSONMessageBodyWriter
extends Object
implements jakarta.ws.rs.ext.MessageBodyWriter<BaseResourceRepresentation>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getSize
(BaseResourceRepresentation t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) boolean
isWriteable
(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) void
writeTo
(BaseResourceRepresentation representation, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream)
-
Constructor Details
-
CumulocityJSONMessageBodyWriter
public CumulocityJSONMessageBodyWriter()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteable
in interfacejakarta.ws.rs.ext.MessageBodyWriter<BaseResourceRepresentation>
-
getSize
public long getSize(BaseResourceRepresentation t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getSize
in interfacejakarta.ws.rs.ext.MessageBodyWriter<BaseResourceRepresentation>
-
writeTo
public void writeTo(BaseResourceRepresentation representation, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, jakarta.ws.rs.WebApplicationException- Specified by:
writeTo
in interfacejakarta.ws.rs.ext.MessageBodyWriter<BaseResourceRepresentation>
- Throws:
IOException
jakarta.ws.rs.WebApplicationException
-