Interface MediaType
- All Known Subinterfaces:
HttpMediaType
public interface MediaType
Media type support and known media types.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringfullType()Deprecated.default booleanTests if this media type has provided Structured Syntaxsuffix(RFC 6839).default booleanChecks whether the subtype is a wildcard.default booleanChecks whether the type is a wildcard.subtype()Subtype, such asyaml.text()Full type, such asapplication/yaml.type()Type, such asapplication.
-
Method Details
-
type
-
subtype
-
fullType
-
text
-
isWildcardType
default boolean isWildcardType()Checks whether the type is a wildcard.- Returns:
- whether this is a wildcard type
-
isWildcardSubtype
default boolean isWildcardSubtype()Checks whether the subtype is a wildcard.- Returns:
- whether this is a wildcard subtype
-
hasSuffix
Tests if this media type has provided Structured Syntaxsuffix(RFC 6839).- Parameters:
suffix- Suffix with or without '+' prefix. If null or empty then returnstrueif this media type has ANY suffix.- Returns:
trueif media type has specifiedsuffixor has any suffix if parameter isnullor empty.
-
text()