Yeah, it's taken me a while to appreciate the style; now that I've used it a few times, I am really liking it.
- James Neale Upstone wrote: > Found it. Thanks. > > For any interested, the "Chaining" style of invocation supported by > StreamWriter (see > http://svn.apache.org/repos/asf/incubator/abdera/java/trunk/examples/src/main/java/org/apache/abdera/examples/appserver/SimpleProvider.java:94) > > has been proposed as a JSR as being automatic for "void" methods. > > The proposal can be found at > http://docs.google.com/View?docid=dg8rbgp8_0gnjwr2. > It would certainly make code a lot more readable as you've demonstrated > in the example. > > Cheers, > > Neale > > > James M Snell wrote: >> 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 >>> >>> >>> >>> >>> >
