There is some major parsing error. This class does not respect the RFC 822 (Section 5) for date format.
When trying to create a contentdisposition from a string, it throws a FormatException if you :
- Use a zone info like GMT, UT, EST, etc that is authorized by the RFC (see Section 5.1 : Syntax)
- Set the number of seconds to zero in the time string (The RFC specified that the time can be from 00:00:00 to 23:59:59).
The string parsing of this class is very weak and doesn't respect the RFC (RFC822) .