Class ServerFileBodyHandler
java.lang.Object
org.jboss.resteasy.reactive.common.providers.serialisers.FileBodyHandler
org.jboss.resteasy.reactive.server.providers.serialisers.ServerFileBodyHandler
- All Implemented Interfaces:
jakarta.ws.rs.ext.MessageBodyReader<File>
,jakarta.ws.rs.ext.MessageBodyWriter<File>
,ServerMessageBodyWriter<File>
@Produces("*/*")
@Consumes("*/*")
public class ServerFileBodyHandler
extends FileBodyHandler
implements ServerMessageBodyWriter<File>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents a byte range for a range requestNested classes/interfaces inherited from interface org.jboss.resteasy.reactive.server.spi.ServerMessageBodyWriter
ServerMessageBodyWriter.AllWriteableMessageBodyWriter
-
Field Summary
Fields inherited from class org.jboss.resteasy.reactive.common.providers.serialisers.FileBodyHandler
PREFIX, SUFFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getSize
(File o, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) boolean
isWriteable
(Class<?> type, Type genericType, ResteasyReactiveResourceInfo target, jakarta.ws.rs.core.MediaType mediaType) void
writeResponse
(File o, Type genericType, ServerRequestContext context) Methods inherited from class org.jboss.resteasy.reactive.common.providers.serialisers.FileBodyHandler
doRead, doWrite, 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.MessageBodyWriter
isWriteable, writeTo
-
Constructor Details
-
ServerFileBodyHandler
public ServerFileBodyHandler()
-
-
Method Details
-
getSize
public long getSize(File o, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
getSize
in interfacejakarta.ws.rs.ext.MessageBodyWriter<File>
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, ResteasyReactiveResourceInfo target, jakarta.ws.rs.core.MediaType mediaType) - Specified by:
isWriteable
in interfaceServerMessageBodyWriter<File>
-
writeResponse
public void writeResponse(File o, Type genericType, ServerRequestContext context) throws jakarta.ws.rs.WebApplicationException - Specified by:
writeResponse
in interfaceServerMessageBodyWriter<File>
- Throws:
jakarta.ws.rs.WebApplicationException
-