Class ServerVertxBufferMessageBodyWriter
java.lang.Object
org.jboss.resteasy.reactive.server.vertx.serializers.ServerVertxBufferMessageBodyWriter
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyWriter<io.vertx.core.buffer.Buffer>,ServerMessageBodyWriter<io.vertx.core.buffer.Buffer>
@Provider
public class ServerVertxBufferMessageBodyWriter
extends Object
implements ServerMessageBodyWriter<io.vertx.core.buffer.Buffer>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.resteasy.reactive.server.spi.ServerMessageBodyWriter
ServerMessageBodyWriter.AllWriteableMessageBodyWriter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) booleanisWriteable(Class<?> type, Type genericType, ResteasyReactiveResourceInfo target, jakarta.ws.rs.core.MediaType mediaType) voidwriteResponse(io.vertx.core.buffer.Buffer buffer, Type genericType, ServerRequestContext context) voidwriteTo(io.vertx.core.buffer.Buffer buffer, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.ws.rs.ext.MessageBodyWriter
getSize
-
Constructor Details
-
ServerVertxBufferMessageBodyWriter
public ServerVertxBufferMessageBodyWriter()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteablein interfacejakarta.ws.rs.ext.MessageBodyWriter<io.vertx.core.buffer.Buffer>
-
writeTo
public void writeTo(io.vertx.core.buffer.Buffer buffer, 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:
writeToin interfacejakarta.ws.rs.ext.MessageBodyWriter<io.vertx.core.buffer.Buffer>- Throws:
IOExceptionjakarta.ws.rs.WebApplicationException
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, ResteasyReactiveResourceInfo target, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteablein interfaceServerMessageBodyWriter<io.vertx.core.buffer.Buffer>
-
writeResponse
public void writeResponse(io.vertx.core.buffer.Buffer buffer, Type genericType, ServerRequestContext context) throws jakarta.ws.rs.WebApplicationException - Specified by:
writeResponsein interfaceServerMessageBodyWriter<io.vertx.core.buffer.Buffer>- Throws:
jakarta.ws.rs.WebApplicationException
-