Interface Representation
- All Known Implementing Classes:
InputStreamRepresentation,JacksonRepresentation,StringRepresentation,VelocityRepresentation
public interface Representation
HTTP response representation a.k.a. body.
-
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(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
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
-