Class ObjectWriter

java.lang.Object
com.tangosol.coherence.rest.providers.ObjectWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<Object>

@Provider public class ObjectWriter extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<Object>
Provider responsible for marshalling Java objects.
Author:
as 2011.07.15
  • Constructor Details

    • ObjectWriter

      public ObjectWriter()
      Default constructor.
    • ObjectWriter

      public ObjectWriter(MarshallerRegistry registry)
      Construct an ObjectWriter instance.
      Parameters:
      registry - marshaller registry to use
  • Method Details

    • isWriteable

      public boolean isWriteable(Class<?> clz, Type type, Annotation[] aAnnotation, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      isWriteable in interface jakarta.ws.rs.ext.MessageBodyWriter<Object>
    • getSize

      public long getSize(Object obj, Class<?> clz, Type type, Annotation[] aAnnotation, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      getSize in interface jakarta.ws.rs.ext.MessageBodyWriter<Object>
    • writeTo

      public void writeTo(Object obj, Class<?> clz, Type type, Annotation[] aAnnotation, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream stream) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<Object>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException