Interface Representation

All Known Implementing Classes:
InputStreamRepresentation, JacksonRepresentation, StringRepresentation, VelocityRepresentation

public interface Representation
HTTP response representation a.k.a. body.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    write(OutputStream outputStream)
    Writes some kind of data (image data, HTML, JSON, etc.) to the given response stream for transmission to the client.
  • Method Details

    • write

      void write(OutputStream outputStream) throws IOException
      Writes some kind of data (image data, HTML, JSON, etc.) to the given response stream for transmission to the client.
      Parameters:
      outputStream - Stream to write to, which should not be closed.
      Throws:
      IOException