You can create a subclass of AbstractResponseContext and return any data
you'd like.  There are a couple of subclasses currently available
include MediaResponseContext, which is based on an InputStream and, in
the trunk, the new StreamWriterResponseContext which leverages the new
StreamWriter interface.  Custom AbstractResponseContext implementations
are not difficult to implement (but could definitely be made easier)

- James

Neale Upstone wrote:
> Hi,
> 
> Using 0.3.0, I'm finding that my end users would like more information. 
> I'd like to return them something other than a <T extends Base>,
> provided for by BaseResponseContext.
> 
> Perhaps it would be useful to have an ErrorResponseContext that could be
> used instead of EmptyResponseContext when returning things like "Bad
> Request"
> 
> Cheers,
> 
> Neale
> 
> 
> 
> 

Reply via email to