Class ContentDispositionFieldLenientImpl

    • Field Detail

      • DEFAULT_DATE_FORMAT

        private static final java.time.format.DateTimeFormatter DEFAULT_DATE_FORMAT
      • parsed

        private boolean parsed
      • dispositionType

        private java.lang.String dispositionType
      • creationDateParsed

        private boolean creationDateParsed
      • creationDate

        private java.util.Date creationDate
      • modificationDateParsed

        private boolean modificationDateParsed
      • modificationDate

        private java.util.Date modificationDate
      • readDateParsed

        private boolean readDateParsed
      • readDate

        private java.util.Date readDate
    • Constructor Detail

      • ContentDispositionFieldLenientImpl

        ContentDispositionFieldLenientImpl​(Field rawField,
                                           DecodeMonitor monitor)
    • Method Detail

      • getDispositionType

        public java.lang.String getDispositionType()
        Description copied from interface: ContentDispositionField
        Gets the disposition type defined in this Content-Disposition field.
        Specified by:
        getDispositionType in interface ContentDispositionField
        Returns:
        the disposition type or an empty string if not set.
      • getParameter

        public java.lang.String getParameter​(java.lang.String name)
        Description copied from interface: ContentDispositionField
        Gets the value of a parameter. Parameter names are case-insensitive.
        Specified by:
        getParameter in interface ContentDispositionField
        Parameters:
        name - the name of the parameter to get.
        Returns:
        the parameter value or null if not set.
      • isDispositionType

        public boolean isDispositionType​(java.lang.String dispositionType)
        Description copied from interface: ContentDispositionField
        Determines if the disposition type of this field matches the given one.
        Specified by:
        isDispositionType in interface ContentDispositionField
        Parameters:
        dispositionType - the disposition type to match against.
        Returns:
        true if the disposition type of this field matches, false otherwise.
      • isInline

        public boolean isInline()
        Description copied from interface: ContentDispositionField
        Return true if the disposition type of this field is inline, false otherwise.
        Specified by:
        isInline in interface ContentDispositionField
        Returns:
        true if the disposition type of this field is inline, false otherwise.
      • isAttachment

        public boolean isAttachment()
        Description copied from interface: ContentDispositionField
        Return true if the disposition type of this field is attachment, false otherwise.
        Specified by:
        isAttachment in interface ContentDispositionField
        Returns:
        true if the disposition type of this field is attachment, false otherwise.
      • getFilename

        public java.lang.String getFilename()
        Description copied from interface: ContentDispositionField
        Gets the value of the filename parameter if set.
        Specified by:
        getFilename in interface ContentDispositionField
        Returns:
        the filename parameter value or null if not set.
      • getCreationDate

        public java.util.Date getCreationDate()
        Description copied from interface: ContentDispositionField
        Gets the value of the creation-date parameter if set and valid.
        Specified by:
        getCreationDate in interface ContentDispositionField
        Returns:
        the creation-date parameter value or null if not set or invalid.
      • getModificationDate

        public java.util.Date getModificationDate()
        Description copied from interface: ContentDispositionField
        Gets the value of the modification-date parameter if set and valid.
        Specified by:
        getModificationDate in interface ContentDispositionField
        Returns:
        the modification-date parameter value or null if not set or invalid.
      • getReadDate

        public java.util.Date getReadDate()
        Description copied from interface: ContentDispositionField
        Gets the value of the read-date parameter if set and valid.
        Specified by:
        getReadDate in interface ContentDispositionField
        Returns:
        the read-date parameter value or null if not set or invalid.
      • getSize

        public long getSize()
        Description copied from interface: ContentDispositionField
        Gets the value of the size parameter if set and valid.
        Specified by:
        getSize in interface ContentDispositionField
        Returns:
        the size parameter value or -1 if not set or invalid.
      • parse

        private void parse()
      • parseDate

        private java.util.Date parseDate​(java.lang.String paramName)