Class ServerByteArrayMessageBodyHandler
java.lang.Object
org.jboss.resteasy.reactive.common.providers.serialisers.ByteArrayMessageBodyHandler
org.jboss.resteasy.reactive.server.providers.serialisers.ServerByteArrayMessageBodyHandler
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<byte[]>
,jakarta.ws.rs.ext.MessageBodyWriter<byte[]>
,ServerMessageBodyReader<byte[]>
,ServerMessageBodyWriter<byte[]>
public class ServerByteArrayMessageBodyHandler
extends ByteArrayMessageBodyHandler
implements ServerMessageBodyWriter<byte[]>, ServerMessageBodyReader<byte[]>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.resteasy.reactive.server.spi.ServerMessageBodyWriter
ServerMessageBodyWriter.AllWriteableMessageBodyWriter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isReadable
(Class<?> type, Type genericType, ResteasyReactiveResourceInfo lazyMethod, jakarta.ws.rs.core.MediaType mediaType) boolean
isWriteable
(Class<?> type, Type genericType, ResteasyReactiveResourceInfo target, jakarta.ws.rs.core.MediaType mediaType) byte[]
readFrom
(Class<byte[]> type, Type genericType, jakarta.ws.rs.core.MediaType mediaType, ServerRequestContext context) void
writeResponse
(byte[] o, Type genericType, ServerRequestContext context) Methods inherited from class org.jboss.resteasy.reactive.common.providers.serialisers.ByteArrayMessageBodyHandler
isReadable, isWriteable, readFrom, writeTo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.ws.rs.ext.MessageBodyReader
isReadable, readFrom
Methods inherited from interface jakarta.ws.rs.ext.MessageBodyWriter
getSize, isWriteable, writeTo
-
Constructor Details
-
ServerByteArrayMessageBodyHandler
public ServerByteArrayMessageBodyHandler()
-
-
Method Details
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, ResteasyReactiveResourceInfo target, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteable
in interfaceServerMessageBodyWriter<byte[]>
-
writeResponse
public void writeResponse(byte[] o, Type genericType, ServerRequestContext context) throws jakarta.ws.rs.WebApplicationException - Specified by:
writeResponse
in interfaceServerMessageBodyWriter<byte[]>
- Throws:
jakarta.ws.rs.WebApplicationException
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, ResteasyReactiveResourceInfo lazyMethod, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isReadable
in interfaceServerMessageBodyReader<byte[]>
-
readFrom
public byte[] readFrom(Class<byte[]> type, Type genericType, jakarta.ws.rs.core.MediaType mediaType, ServerRequestContext context) throws jakarta.ws.rs.WebApplicationException, IOException - Specified by:
readFrom
in interfaceServerMessageBodyReader<byte[]>
- Throws:
jakarta.ws.rs.WebApplicationException
IOException
-