Class QuarkusMultipartResponseDataFactory
java.lang.Object
org.jboss.resteasy.reactive.client.impl.multipart.QuarkusMultipartResponseDataFactory
based on
DefaultHttpDataFactory but for responses, the original one is for requests only :(-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHttpData 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) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidcleanResponseHttpData(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 Details
-
MINSIZE
public static final long MINSIZEProposed default MINSIZE as 16 KB.- See Also:
-
MAXSIZE
public static final long MAXSIZEProposed default MAXSIZE = -1 as UNLIMITED- See Also:
-
-
Constructor Details
-
QuarkusMultipartResponseDataFactory
public QuarkusMultipartResponseDataFactory()HttpData will be in memory if less than default size (16KB). The type will be Mixed. -
QuarkusMultipartResponseDataFactory
-
QuarkusMultipartResponseDataFactory
public QuarkusMultipartResponseDataFactory(boolean useDisk) HttpData will be always on Disk if useDisk is True, else always in Memory if False -
QuarkusMultipartResponseDataFactory
-
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
-
-
Method Details
-
setBaseDir
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
-
createFileUpload
-
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()
-