Class NioMessageBodyWriter

java.lang.Object
org.apache.cxf.jaxrs.nio.NioMessageBodyWriter
All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<NioWriteEntity>

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

    • NioMessageBodyWriter

      public NioMessageBodyWriter()
  • Method Details

    • isWriteable

      public boolean isWriteable(Class<?> cls, Type type, Annotation[] anns, jakarta.ws.rs.core.MediaType mt)
      Specified by:
      isWriteable in interface jakarta.ws.rs.ext.MessageBodyWriter<NioWriteEntity>
    • writeTo

      public void writeTo(NioWriteEntity entity, Class<?> cls, Type t, Annotation[] anns, jakarta.ws.rs.core.MediaType mt, jakarta.ws.rs.core.MultivaluedMap<String,Object> headers, OutputStream os) throws IOException, jakarta.ws.rs.WebApplicationException
      Specified by:
      writeTo in interface jakarta.ws.rs.ext.MessageBodyWriter<NioWriteEntity>
      Throws:
      IOException
      jakarta.ws.rs.WebApplicationException
    • getSize

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