Interface EntityBuilder.Entity

Enclosing interface:
EntityBuilder

public static interface EntityBuilder.Entity
Represents a built entity consisting of a set of HTTP headers and an InputStream.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets all HTTP headers for the represented entity.
    Gets the input stream for the built entity.
  • Method Details

    • getHeaders

      Map<String,String> getHeaders()
      Gets all HTTP headers for the represented entity. At a minimum, this should include an appropriate "Content-Type" header.
      Returns:
      A map of all HTTP headers for the entity
    • getInputStream

      InputStream getInputStream()
      Gets the input stream for the built entity.
      Returns:
      An entity input stream