Package org.apache.camel.spi
Interface ContentTypeAware
-
public interface ContentTypeAware
Represents an object that can have an associated content type. Such as a file or http resource.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getContentType()
The content type.void
setContentType(String contentType)
Sets the content type.
-
-
-
Method Detail
-
getContentType
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
null
if the content type has not been set or is not known.
-
setContentType
void setContentType(String contentType)
Sets the content type.- Parameters:
contentType
- The content type string
-
-