Package org.apache.camel.spi
Interface ContentTypeAware
-
public interface ContentTypeAwareRepresents 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 StringgetContentType()The content type.voidsetContentType(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
nullif 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
-
-