Class ContentTypeFieldLenientImpl

    • Field Detail

      • parsed

        private boolean parsed
      • mimeType

        private java.lang.String mimeType
      • mediaType

        private java.lang.String mediaType
      • subType

        private java.lang.String subType
      • parameters

        private final java.util.Map<java.lang.String,​java.lang.String> parameters
    • Constructor Detail

      • ContentTypeFieldLenientImpl

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

      • getMimeType

        public java.lang.String getMimeType()
        Description copied from interface: ContentTypeField
        Gets the MIME type defined in this Content-Type field.
        Specified by:
        getMimeType in interface ContentTypeField
        Returns:
        the MIME type or an empty string if not set.
      • getMediaType

        public java.lang.String getMediaType()
        Description copied from interface: ContentTypeField
        Gets the media type defined in this Content-Type field.
        Specified by:
        getMediaType in interface ContentTypeField
      • getSubType

        public java.lang.String getSubType()
        Description copied from interface: ContentTypeField
        Gets the subtype defined in this Content-Type field.
        Specified by:
        getSubType in interface ContentTypeField
      • getParameter

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

        public java.util.Map<java.lang.String,​java.lang.String> getParameters()
        Description copied from interface: ContentTypeField
        Gets all parameters.
        Specified by:
        getParameters in interface ContentTypeField
        Returns:
        the parameters.
      • isMimeType

        public boolean isMimeType​(java.lang.String mimeType)
        Description copied from interface: ContentTypeField
        Determines if the MIME type of this field matches the given one.
        Specified by:
        isMimeType in interface ContentTypeField
        Parameters:
        mimeType - the MIME type to match against.
        Returns:
        true if the MIME type of this field matches, false otherwise.
      • isMultipart

        public boolean isMultipart()
        Description copied from interface: ContentTypeField
        Determines if the MIME type of this field is multipart/*.
        Specified by:
        isMultipart in interface ContentTypeField
        Returns:
        true if this field is has a multipart/* MIME type, false otherwise.
      • getBoundary

        public java.lang.String getBoundary()
        Description copied from interface: ContentTypeField
        Gets the value of the boundary parameter if set.
        Specified by:
        getBoundary in interface ContentTypeField
        Returns:
        the boundary parameter value or null if not set.
      • getCharset

        public java.lang.String getCharset()
        Description copied from interface: ContentTypeField
        Gets the value of the charset parameter if set.
        Specified by:
        getCharset in interface ContentTypeField
        Returns:
        the charset parameter value or null if not set.
      • parse

        private void parse()