Class ServerInputStreamMessageBodyHandler
java.lang.Object
org.jboss.resteasy.reactive.common.providers.serialisers.InputStreamMessageBodyHandler
org.jboss.resteasy.reactive.server.providers.serialisers.ServerInputStreamMessageBodyHandler
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<InputStream>,jakarta.ws.rs.ext.MessageBodyWriter<InputStream>,ServerMessageBodyReader<InputStream>,ServerMessageBodyWriter<InputStream>
public class ServerInputStreamMessageBodyHandler
extends InputStreamMessageBodyHandler
implements ServerMessageBodyReader<InputStream>, ServerMessageBodyWriter<InputStream>
-
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 TypeMethodDescriptionlonggetSize(InputStream inputStream, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) booleanisReadable(Class<?> type, Type genericType, ResteasyReactiveResourceInfo lazyMethod, jakarta.ws.rs.core.MediaType mediaType) booleanisWriteable(Class<?> type, Type genericType, ResteasyReactiveResourceInfo target, jakarta.ws.rs.core.MediaType mediaType) readFrom(Class<InputStream> type, Type genericType, jakarta.ws.rs.core.MediaType mediaType, ServerRequestContext context) voidwriteResponse(InputStream is, Type genericType, ServerRequestContext context) Methods inherited from class org.jboss.resteasy.reactive.common.providers.serialisers.InputStreamMessageBodyHandler
isReadable, isWriteable, readFrom, writeTo, writeToMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.ws.rs.ext.MessageBodyReader
isReadable, readFromMethods inherited from interface jakarta.ws.rs.ext.MessageBodyWriter
isWriteable, writeTo
-
Constructor Details
-
ServerInputStreamMessageBodyHandler
public ServerInputStreamMessageBodyHandler()
-
-
Method Details
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, ResteasyReactiveResourceInfo lazyMethod, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isReadablein interfaceServerMessageBodyReader<InputStream>
-
readFrom
public InputStream readFrom(Class<InputStream> type, Type genericType, jakarta.ws.rs.core.MediaType mediaType, ServerRequestContext context) throws jakarta.ws.rs.WebApplicationException, IOException - Specified by:
readFromin interfaceServerMessageBodyReader<InputStream>- Throws:
jakarta.ws.rs.WebApplicationExceptionIOException
-
getSize
public long getSize(InputStream inputStream, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getSizein interfacejakarta.ws.rs.ext.MessageBodyWriter<InputStream>
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, ResteasyReactiveResourceInfo target, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteablein interfaceServerMessageBodyWriter<InputStream>
-
writeResponse
public void writeResponse(InputStream is, Type genericType, ServerRequestContext context) throws jakarta.ws.rs.WebApplicationException, IOException - Specified by:
writeResponsein interfaceServerMessageBodyWriter<InputStream>- Throws:
jakarta.ws.rs.WebApplicationExceptionIOException
-