Interface ContentTypeAware
public interface ContentTypeAware
Represents an object that can have an associated content type. Such as a file or http resource.
- Since:
- 3.18
-
Method Summary
Modifier and TypeMethodDescription@Nullable StringThe content type.voidsetContentType(@Nullable String contentType) Sets the content type.
-
Method Details
-
getContentType
@Nullable String getContentType()The content type. Usually a value that conforms to the media type specification outlined in RFC 6838.- Returns:
- The content type string. Can be
nullif the content type has not been set or is not known.
-
setContentType
Sets the content type.- Parameters:
contentType- The content type string
-