Class EntityWriter

java.lang.Object
ee.jakarta.tck.ws.rs.spec.resource.locator.EntityWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<LocatorEntity>

@Provider public class EntityWriter extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<LocatorEntity>
  • Constructor Details

    • EntityWriter

      public EntityWriter()
  • Method Details

    • getSize

      public long getSize(LocatorEntity t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      getSize in interface jakarta.ws.rs.ext.MessageBodyWriter<LocatorEntity>
    • isWriteable

      public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
      Specified by:
      isWriteable in interface jakarta.ws.rs.ext.MessageBodyWriter<LocatorEntity>
    • writeTo

      public void writeTo(LocatorEntity t, 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 interface jakarta.ws.rs.ext.MessageBodyWriter<LocatorEntity>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException