Interface ContentTypeAware


public interface ContentTypeAware
Represents an object that can have an associated content type. Such as a file or http resource.
  • Method Summary

    Modifier and Type
    Method
    Description
    The content type.
    void
    setContentType(String contentType)
    Sets the content type.
  • Method Details

    • 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