aspose file tools*
The moose likes Groovy and the fly likes How does one construct the delegate / response handler pattern as used in HTTPBuilder? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "How does one construct the delegate / response handler pattern as used in HTTPBuilder?" Watch "How does one construct the delegate / response handler pattern as used in HTTPBuilder?" New topic
Author

How does one construct the delegate / response handler pattern as used in HTTPBuilder?

joseph beuckman
Greenhorn

Joined: Oct 18, 2012
Posts: 1
I want to write an asynchronous function that accepts a closure with handlers like HTTPBuilder.request does. How is the function written?

When I call the function, it will look like this:


 
 
subject: How does one construct the delegate / response handler pattern as used in HTTPBuilder?