Package org.apache.cxf.jaxrs.nio
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getSize
(NioWriteEntity t, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) boolean
isWriteable
(Class<?> cls, Type type, Annotation[] anns, jakarta.ws.rs.core.MediaType mt) 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)
-
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 interfacejakarta.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 interfacejakarta.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 interfacejakarta.ws.rs.ext.MessageBodyWriter<NioWriteEntity>
-