Class QuarkusMultipartResponseDataFactory
- java.lang.Object
-
- org.jboss.resteasy.reactive.client.impl.multipart.QuarkusMultipartResponseDataFactory
-
public class QuarkusMultipartResponseDataFactory extends Object
based onDefaultHttpDataFactorybut for responses, the original one is for requests only :(
-
-
Constructor Summary
Constructors Constructor Description QuarkusMultipartResponseDataFactory()HttpData will be in memory if less than default size (16KB).QuarkusMultipartResponseDataFactory(boolean useDisk)HttpData will be always on Disk if useDisk is True, else always in Memory if FalseQuarkusMultipartResponseDataFactory(boolean useDisk, Charset charset)QuarkusMultipartResponseDataFactory(long minSize)HttpData will be on Disk if the size of the file is greater than minSize, else it will be in memory.QuarkusMultipartResponseDataFactory(long minSize, Charset charset)QuarkusMultipartResponseDataFactory(Charset charset)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanAllHttpData()voidcleanAllHttpDatas()voidcleanResponseHttpData(io.vertx.core.http.HttpClientResponse response)voidcleanResponseHttpDatas(io.vertx.core.http.HttpClientResponse response)io.netty.handler.codec.http.multipart.AttributecreateAttribute(io.vertx.core.http.HttpClientResponse response, String name)io.netty.handler.codec.http.multipart.AttributecreateAttribute(io.vertx.core.http.HttpClientResponse response, String name, long definedSize)io.netty.handler.codec.http.multipart.AttributecreateAttribute(io.vertx.core.http.HttpClientResponse response, String name, String value)io.netty.handler.codec.http.multipart.FileUploadcreateFileUpload(io.vertx.core.http.HttpClientResponse response, String name, String filename, String contentType, String contentTransferEncoding, Charset charset, long size)voidremoveHttpDataFromClean(io.vertx.core.http.HttpClientResponse response, io.netty.handler.codec.http.multipart.InterfaceHttpData data)voidsetBaseDir(String baseDir)Override globalDiskAttribute.baseDirectoryandDiskFileUpload.baseDirectoryvalues.voidsetDeleteOnExit(boolean deleteOnExit)Override globalDiskAttribute.deleteOnExitTemporaryFileandDiskFileUpload.deleteOnExitTemporaryFilevalues.voidsetMaxLimit(long maxSize)
-
-
-
Field Detail
-
MINSIZE
public static final long MINSIZE
Proposed default MINSIZE as 16 KB.- See Also:
- Constant Field Values
-
MAXSIZE
public static final long MAXSIZE
Proposed default MAXSIZE = -1 as UNLIMITED- See Also:
- Constant Field Values
-
-
Constructor Detail
-
QuarkusMultipartResponseDataFactory
public QuarkusMultipartResponseDataFactory()
HttpData will be in memory if less than default size (16KB). The type will be Mixed.
-
QuarkusMultipartResponseDataFactory
public QuarkusMultipartResponseDataFactory(Charset charset)
-
QuarkusMultipartResponseDataFactory
public QuarkusMultipartResponseDataFactory(boolean useDisk)
HttpData will be always on Disk if useDisk is True, else always in Memory if False
-
QuarkusMultipartResponseDataFactory
public QuarkusMultipartResponseDataFactory(boolean useDisk, Charset charset)
-
QuarkusMultipartResponseDataFactory
public QuarkusMultipartResponseDataFactory(long minSize)
HttpData will be on Disk if the size of the file is greater than minSize, else it will be in memory. The type will be Mixed.
-
QuarkusMultipartResponseDataFactory
public QuarkusMultipartResponseDataFactory(long minSize, Charset charset)
-
-
Method Detail
-
setBaseDir
public void setBaseDir(String baseDir)
Override globalDiskAttribute.baseDirectoryandDiskFileUpload.baseDirectoryvalues.- Parameters:
baseDir- directory path where to store disk attributes and file uploads.
-
setDeleteOnExit
public void setDeleteOnExit(boolean deleteOnExit)
Override globalDiskAttribute.deleteOnExitTemporaryFileandDiskFileUpload.deleteOnExitTemporaryFilevalues.- Parameters:
deleteOnExit- true if temporary files should be deleted with the JVM, false otherwise.
-
setMaxLimit
public void setMaxLimit(long maxSize)
-
createAttribute
public io.netty.handler.codec.http.multipart.Attribute createAttribute(io.vertx.core.http.HttpClientResponse response, String name)
-
createAttribute
public io.netty.handler.codec.http.multipart.Attribute createAttribute(io.vertx.core.http.HttpClientResponse response, String name, long definedSize)
-
createAttribute
public io.netty.handler.codec.http.multipart.Attribute createAttribute(io.vertx.core.http.HttpClientResponse response, String name, String value)
-
createFileUpload
public io.netty.handler.codec.http.multipart.FileUpload createFileUpload(io.vertx.core.http.HttpClientResponse response, String name, String filename, String contentType, String contentTransferEncoding, Charset charset, long size)
-
removeHttpDataFromClean
public void removeHttpDataFromClean(io.vertx.core.http.HttpClientResponse response, io.netty.handler.codec.http.multipart.InterfaceHttpData data)
-
cleanResponseHttpData
public void cleanResponseHttpData(io.vertx.core.http.HttpClientResponse response)
-
cleanAllHttpData
public void cleanAllHttpData()
-
cleanResponseHttpDatas
public void cleanResponseHttpDatas(io.vertx.core.http.HttpClientResponse response)
-
cleanAllHttpDatas
public void cleanAllHttpDatas()
-
-