ERRest ERXRouteResults
Martin B <[email protected]> Thu, 30 May 2013 14:40:58 -0400
| Newsgroups | gmane.comp.web.webobjects.wonder-disc |
|---|---|
| Message-ID | <[email protected]> |
I'm looking for an example that demonstrates how ERXRouteResults can be used to "chain" multiple rest responders together.
/** * ERXRouteResults encapsulates the data necessary to produce a RESTful response. This object exists to defer the * generation of the response (so you can chain together rest responders). * * @author mschrag */public class ERXRouteResults implements WOActionResults {
For example if I have the following RouteControllers:
-GarageController.java-TruckController.java-DriverController.java
And then I make the following request: /garages/1/trucks/A3G1E6/drivers
I want GarageController to delegate the request to TruckController which will then delegate the request to DriverController to get the list of drivers.
Thank you!
Martin
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Wonder-disc mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wonder-disc