Class TestMessageBodyWriter

java.lang.Object
org.eclipse.microprofile.rest.client.tck.providers.TestMessageBodyWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<String>

@Produces("text/plain") public class TestMessageBodyWriter extends Object implements jakarta.ws.rs.ext.MessageBodyWriter<String>
  • Constructor Details

    • TestMessageBodyWriter

      public TestMessageBodyWriter()
  • Method Details

    • isWriteable

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

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

      public void writeTo(String s, Class<?> aClass, Type type, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> multivaluedMap, OutputStream outputStream) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<String>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException