This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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:


 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: How does one construct the delegate / response handler pattern as used in HTTPBuilder?
 
It's not a secret anymore!