Class QuarkusServerFileBodyHandler

  • All Implemented Interfaces:
    jakarta.ws.rs.ext.MessageBodyReader<File>, org.jboss.resteasy.reactive.server.spi.ServerMessageBodyReader<File>

    public class QuarkusServerFileBodyHandler
    extends Object
    implements org.jboss.resteasy.reactive.server.spi.ServerMessageBodyReader<File>
    • Constructor Detail

      • QuarkusServerFileBodyHandler

        public QuarkusServerFileBodyHandler()
    • Method Detail

      • isReadable

        public boolean isReadable​(Class<?> type,
                                  Type genericType,
                                  org.jboss.resteasy.reactive.server.spi.ResteasyReactiveResourceInfo lazyMethod,
                                  jakarta.ws.rs.core.MediaType mediaType)
        Specified by:
        isReadable in interface org.jboss.resteasy.reactive.server.spi.ServerMessageBodyReader<File>
      • readFrom

        public File readFrom​(Class<File> type,
                             Type genericType,
                             jakarta.ws.rs.core.MediaType mediaType,
                             org.jboss.resteasy.reactive.server.spi.ServerRequestContext context)
                      throws jakarta.ws.rs.WebApplicationException,
                             IOException
        Specified by:
        readFrom in interface org.jboss.resteasy.reactive.server.spi.ServerMessageBodyReader<File>
        Throws:
        jakarta.ws.rs.WebApplicationException
        IOException
      • isReadable

        public boolean isReadable​(Class<?> type,
                                  Type genericType,
                                  Annotation[] annotations,
                                  jakarta.ws.rs.core.MediaType mediaType)
        Specified by:
        isReadable in interface jakarta.ws.rs.ext.MessageBodyReader<File>
      • readFrom

        public File readFrom​(Class<File> type,
                             Type genericType,
                             Annotation[] annotations,
                             jakarta.ws.rs.core.MediaType mediaType,
                             jakarta.ws.rs.core.MultivaluedMap<String,​String> httpHeaders,
                             InputStream entityStream)
                      throws IOException,
                             jakarta.ws.rs.WebApplicationException
        Specified by:
        readFrom in interface jakarta.ws.rs.ext.MessageBodyReader<File>
        Throws:
        IOException
        jakarta.ws.rs.WebApplicationException