Package org.apache.rat.api
Class ContentType
java.lang.Object
org.apache.rat.api.ContentType
Describe the MIME content type of a resource.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the media type, normalised to lower case.Gets an immutable map containing all content type parameters with keys normalised to lower case.Gets the media sub type normalised to lower case
-
Constructor Details
-
ContentType
Constructs content types, performing any necessary conversions.- Parameters:
mediaType
- not nullsubType
- not nullparameters
- not null
-
-
Method Details
-
getMediaType
Gets the media type, normalised to lower case.- Returns:
- media type, not null
-
getSubType
Gets the media sub type normalised to lower case- Returns:
- sub type, not null
-
getParameters
Gets an immutable map containing all content type parameters with keys normalised to lower case.- Returns:
- not null
-