Attribute and FileUpload according to constructor.
According to the constructor, Attribute and FileUpload can be:
for (InterfaceHttpData httpData: decoder.getBodyHttpDatas()) {
httpData.release();
factory.removeHttpDataFromClean(request, httpData);
}
factory.cleanAllHttpData();
decoder.destroy();
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private Charset | |
| private final boolean | |
| private boolean | |
| public static final long | MAXSIZE
Proposed default MAXSIZE = -1 as UNLIMITED |
| private long | |
| public static final long | MINSIZE
Proposed default MINSIZE as 16 KB. |
| private long | |
| private final Map | requestFileDeleteMap
Keep all |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | DefaultHttpDataFactory(boolean useDisk)
HttpData will be always on Disk if useDisk is True, else always in Memory if False |
| public | |
| public | DefaultHttpDataFactory(long minSize)
HttpData will be on Disk if the size of the file is greater than minSize, else it will be in memory. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public void | cleanAllHttpData()
Implements io. |
| public void | |
| public void | cleanRequestHttpData(HttpRequest
associated request request)Implements io. |
| public void | |
| public Attribute | createAttribute(HttpRequest
associated request request, String name)Implements io. |
| public Attribute | createAttribute(HttpRequest
associated request request, String name of the attribute name, long defined size from request for this attribute definedSize)Implements io. |
| public Attribute | createAttribute(HttpRequest
associated request request, String name, String value)Implements io. |
| public FileUpload | createFileUpload(HttpRequest
associated request request, String name, String filename, String contentType, String contentTransferEncoding, Charset charset, long the size of the Uploaded file size)Implements io. |
| private List | |
| public void | removeHttpDataFromClean(HttpRequest
associated request request, InterfaceHttpData data)Implements io. |
| public void | setBaseDir(String
directory path where to store disk attributes and file uploads. baseDir)Override global |
| public void | setDeleteOnExit(boolean
true if temporary files should be deleted with the JVM, false otherwise. deleteOnExit)Override global |
| public void | setMaxLimit(long maxSize)
Implements io. |
| baseDir | back to summary |
|---|---|
| private String baseDir | |
| charset | back to summary |
|---|---|
| private Charset charset | |
| checkSize | back to summary |
|---|---|
| private final boolean checkSize | |
| deleteOnExit | back to summary |
|---|---|
| private boolean deleteOnExit | |
| MAXSIZE | back to summary |
|---|---|
| public static final long MAXSIZE Proposed default MAXSIZE = -1 as UNLIMITED | |
| maxSize | back to summary |
|---|---|
| private long maxSize | |
| MINSIZE | back to summary |
|---|---|
| public static final long MINSIZE Proposed default MINSIZE as 16 KB. | |
| minSize | back to summary |
|---|---|
| private long minSize | |
| requestFileDeleteMap | back to summary |
|---|---|
| private final Map<HttpRequest, List<HttpData>> requestFileDeleteMap Keep all | |
| useDisk | back to summary |
|---|---|
| private final boolean useDisk | |
| DefaultHttpDataFactory | back to summary |
|---|---|
| public DefaultHttpDataFactory() HttpData will be in memory if less than default size (16KB). The type will be Mixed. | |
| DefaultHttpDataFactory | back to summary |
|---|---|
| public DefaultHttpDataFactory(Charset charset) | |
| DefaultHttpDataFactory | back to summary |
|---|---|
| public DefaultHttpDataFactory(boolean useDisk) HttpData will be always on Disk if useDisk is True, else always in Memory if False | |
| DefaultHttpDataFactory | back to summary |
|---|---|
| public DefaultHttpDataFactory(boolean useDisk, Charset charset) | |
| DefaultHttpDataFactory | back to summary |
|---|---|
| public DefaultHttpDataFactory(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. | |
| DefaultHttpDataFactory | back to summary |
|---|---|
| public DefaultHttpDataFactory(long minSize, Charset charset) | |
| checkHttpDataSize | back to summary |
|---|---|
| private static void checkHttpDataSize(HttpData data) Utility method | |
| cleanAllHttpData | back to summary |
|---|---|
| public void cleanAllHttpData() Implements io. Doc from io. Remove all InterfaceHttpData from virtual File storage from clean list for all requests
| |
| cleanAllHttpDatas | back to summary |
|---|---|
| public void cleanAllHttpDatas() Implements io.
| |
| cleanRequestHttpData | back to summary |
|---|---|
| public void cleanRequestHttpData(HttpRequest request) Implements io. Doc from io. Remove all InterfaceHttpData from virtual File storage from clean list for the request
| |
| cleanRequestHttpDatas | back to summary |
|---|---|
| public void cleanRequestHttpDatas(HttpRequest request) Implements io.
| |
| createAttribute | back to summary |
|---|---|
| public Attribute createAttribute(HttpRequest request, String name) Implements io.
| |
| createAttribute | back to summary |
|---|---|
| public Attribute createAttribute(HttpRequest request, String name, long definedSize) Implements io.
| |
| createAttribute | back to summary |
|---|---|
| public Attribute createAttribute(HttpRequest request, String name, String value) Implements io.
| |
| createFileUpload | back to summary |
|---|---|
| public FileUpload createFileUpload(HttpRequest request, String name, String filename, String contentType, String contentTransferEncoding, Charset charset, long size) Implements io.
| |
| getList | back to summary |
|---|---|
| private List | |
| removeHttpDataFromClean | back to summary |
|---|---|
| public void removeHttpDataFromClean(HttpRequest request, InterfaceHttpData data) Implements io. Doc from io. Remove the given InterfaceHttpData from clean list (will not delete the file, except if the file is still a temporary one as setup at construction)
| |
| setBaseDir | back to summary |
|---|---|
| public void setBaseDir(String baseDir) Override global
| |
| setDeleteOnExit | back to summary |
|---|---|
| public void setDeleteOnExit(boolean deleteOnExit) Override global
| |
| setMaxLimit | back to summary |
|---|---|
| public void setMaxLimit(long maxSize) Implements io. Doc from io. To set a max size limitation on fields. Exceeding it will generate an ErrorDataDecoderException. A value of -1 means no limitation (default).
| |