Class FileBodyHandler
- java.lang.Object
-
- org.jboss.resteasy.reactive.common.providers.serialisers.FileBodyHandler
-
-
Constructor Summary
Constructors Constructor Description FileBodyHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoWrite(File uploadFile, OutputStream out)booleanisReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)booleanisWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)FilereadFrom(Class<File> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,String> httpHeaders, InputStream entityStream)voidwriteTo(File uploadFile, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream)
-
-
-
Field Detail
-
PREFIX
protected static final String PREFIX
- See Also:
- Constant Field Values
-
SUFFIX
protected static final String SUFFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
isReadable
public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
- Specified by:
isReadablein interfacejakarta.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
- Specified by:
readFromin interfacejakarta.ws.rs.ext.MessageBodyReader<File>- Throws:
IOException
-
isWriteable
public boolean isWriteable(Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType)
- Specified by:
isWriteablein interfacejakarta.ws.rs.ext.MessageBodyWriter<File>
-
writeTo
public void writeTo(File uploadFile, Class<?> type, Type genericType, Annotation[] annotations, jakarta.ws.rs.core.MediaType mediaType, jakarta.ws.rs.core.MultivaluedMap<String,Object> httpHeaders, OutputStream entityStream) throws IOException
- Specified by:
writeToin interfacejakarta.ws.rs.ext.MessageBodyWriter<File>- Throws:
IOException
-
doWrite
protected void doWrite(File uploadFile, OutputStream out) throws IOException
- Throws:
IOException
-
-