The Content interface is used to provide an interface
to content within a Context . The contents represented
by the Content implementation could be dynamic or
static depending on the Context that served it.
Static content represented by resources on the underlying file
system such as files are represented as Content
objects to provide a simple means of writing that content to HTTP
clients using an OutputStream .
The Content interface can also be used to provide a
means for writing dynamic content. Dynamic content such as that
produced by simple.template.Document objects can be
implemented as a Content . The implementation can then
be presented to the client using the write methods.
author: Niall Gallagher See Also: simple.http.serve.ContentFactory |