Class DefaultHttpDataFactory

  • All Implemented Interfaces:
    HttpDataFactory

    public class DefaultHttpDataFactory
    extends Object
    implements HttpDataFactory
    Default factory giving Attribute and FileUpload according to constructor Attribute and FileUpload could be :
    - MemoryAttribute, DiskAttribute or MixedAttribute
    - MemoryFileUpload, DiskFileUpload or MixedFileUpload
    according to the constructor.
    • 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

      • DefaultHttpDataFactory

        public DefaultHttpDataFactory()
        HttpData will be in memory if less than default size (16KB). No limit setup. The type will be Mixed.
      • DefaultHttpDataFactory

        public DefaultHttpDataFactory​(boolean useDisk)
        HttpData will be always on Disk if useDisk is True, else always in Memory if False. No limit setup.
      • DefaultHttpDataFactory

        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. No limit setup.