GroovyRestlet is a simple DSL for constructing Restlet application in a simple, shortcuting syntax.
GroovyRestlet is distributed as a single jar.
Current release of GroovyRestlet is 0.2-SNAPSHOT, download from here
- Upgrade to Reestlet 1.1 M2
- GroovyRestlet 0.1 download from here for Restlet 1.1-SNAPSHOT
At current moment, GroovyRestlet depends following:
- Groovy 1.5
- Java 1.5
- Restlet 1.1-SNAPSHOT
- SLF4J 1.4.3 as logging tool
- Spring 2.5 if spring integration is required
- commons-lang 2.3
Drop GroovyRestlet and all dependencies in your Java classpath.
First, create an instance of
Then, prepare your Restlet building script using simple GroovyRestlet DSL syntax.
GroovyRestlet.build(URI) then done.
Check GroovyRestlet User Guide for detail user information.
Here is one GroovyRestlet DSL example, inspired from Restlet tutorial 11.
For more examples:
GroovyRestlet uses Maven 2 as its building tool.
Feel free to contribute.