Interface ContentFactory

All Superinterfaces:
Serializable
All Known Implementing Classes:
ByteArrayContentFactory, FileContentFactory, InputStreamContentFactory

public interface ContentFactory extends Serializable
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a new data source of the data to be sent.
  • Method Details

    • getContent

      InputStream getContent() throws IOException
      Returns a new data source of the data to be sent. The instance must ensure that the returned stream will deliver the identical data during the lifetime of this instance. Nevertheless, how often the method will be called.
      Returns:
      a new data source of the data to be sent.
      Throws:
      IOException