Class TypedStreamSource

  • All Implemented Interfaces:
    Source

    public class TypedStreamSource
    extends StreamSource
    A StreamSource augmented with ContentType information, which potentially provides the media type and encoding
    • Constructor Detail

      • TypedStreamSource

        public TypedStreamSource()
    • Method Detail

      • setContentType

        public void setContentType​(String contentType)
        Set the content type
        Parameters:
        contentType - the content type, in the format of the HTTP content type header
      • getContentType

        public String getContentType()
        Get the content type
        Returns:
        contentType the content type, in the format of the HTTP content type header; or null if not known