-
Field Summary
Fields
The name of the boundary parameter.
The name of the charset parameter.
The message/rfc822 MIME type.
The multipart/digest MIME type.
The prefix of all multipart MIME types.
The text/plain MIME type.
-
Method Summary
default boolean
Gets the value of the boundary parameter if set.
Gets the value of the charset parameter if set.
Gets the media type defined in this Content-Type field.
Gets the MIME type defined in this Content-Type field.
Gets the value of a parameter.
Gets the subtype defined in this Content-Type field.
boolean
Determines if the MIME type of this field matches the given one.
boolean
Determines if the MIME type of this field is multipart/*.
-
Field Details
-
TYPE_MULTIPART_PREFIX
static final String TYPE_MULTIPART_PREFIX
The prefix of all multipart MIME types.
- See Also:
-
-
TYPE_MULTIPART_DIGEST
static final String TYPE_MULTIPART_DIGEST
The multipart/digest MIME type.
- See Also:
-
-
TYPE_TEXT_PLAIN
static final String TYPE_TEXT_PLAIN
The text/plain MIME type.
- See Also:
-
-
TYPE_MESSAGE_RFC822
static final String TYPE_MESSAGE_RFC822
The message/rfc822 MIME type.
- See Also:
-
-
PARAM_BOUNDARY
static final String PARAM_BOUNDARY
The name of the boundary parameter.
- See Also:
-
-
PARAM_CHARSET
static final String PARAM_CHARSET
The name of the charset parameter.
- See Also:
-
-
Method Details
-
bodyDescriptionField
default boolean bodyDescriptionField()
- Specified by:
bodyDescriptionField in interface ParsedField
-
getMimeType
Gets the MIME type defined in this Content-Type field.
- Returns:
- the MIME type or an empty string if not set.
-
-
getSubType
Gets the subtype defined in this Content-Type field.
-
getParameter
Gets the value of a parameter. Parameter names are case-insensitive.
- Parameters:
name - the name of the parameter to get.
- Returns:
- the parameter value or
null if not set.
-
getParameters
Gets all parameters.
- Returns:
- the parameters.
-
isMimeType
boolean isMimeType(String mimeType)
Determines if the MIME type of this field matches the given one.
- Parameters:
mimeType - the MIME type to match against.
- Returns:
true if the MIME type of this field matches,
false otherwise.
-
isMultipart
boolean isMultipart()
Determines if the MIME type of this field is multipart/*.
- Returns:
true if this field is has a
multipart/* MIME type, false
otherwise.
-
getBoundary
Gets the value of the boundary parameter if set.
- Returns:
- the
boundary parameter value or null
if not set.
-
getCharset
Gets the value of the charset parameter if set.
- Returns:
- the
charset parameter value or null
if not set.