Class ClientSideWriter

java.lang.Object
ee.jakarta.tck.ws.rs.ee.rs.constrainedto.ClientSideWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<String>

@Provider @ConstrainedTo(CLIENT) public class ClientSideWriter extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<String>
  • Field Details

    • FAKE_MESSAGE

      public static final String FAKE_MESSAGE
      See Also:
    • MEDIA_TYPE

      public static final jakarta.ws.rs.core.MediaType MEDIA_TYPE
  • Constructor Details

    • ClientSideWriter

      public ClientSideWriter()
  • Method Details

    • 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<String>
    • getSize

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

      public void writeTo(String 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<String>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException