Last change
on this file since 15 was
15,
checked in by duh, 13 years ago
|
-added initial implementation of authorization code
|
-
Property svn:keywords set to
Date Author Rev
|
File size:
642 bytes
|
Rev | Line | |
---|
[12] | 1 | /** |
---|
| 2 | * Test Controller |
---|
| 3 | * @Author Jeroen Wesbeek |
---|
| 4 | * @Since 20091019 |
---|
| 5 | * |
---|
| 6 | * Revision information: |
---|
| 7 | * $Rev: 15 $ |
---|
| 8 | * $Author: duh $ |
---|
| 9 | * $Date: 2009-10-21 11:04:41 +0000 (wo, 21 okt 2009) $ |
---|
| 10 | */ |
---|
| 11 | public class TestController extends BaseController { |
---|
| 12 | /** |
---|
| 13 | * class constructor |
---|
| 14 | * @void |
---|
| 15 | */ |
---|
| 16 | public def TestController() { |
---|
[15] | 17 | // nothing yet |
---|
[12] | 18 | } |
---|
[15] | 19 | |
---|
| 20 | /** |
---|
| 21 | * render dummy text when executed |
---|
| 22 | * @void |
---|
| 23 | */ |
---|
| 24 | def index = { |
---|
| 25 | render(sprintf("this is %s",this.class.name)); |
---|
| 26 | } |
---|
| 27 | |
---|
| 28 | /** |
---|
| 29 | * dummy method |
---|
| 30 | */ |
---|
| 31 | def sayHello = { |
---|
| 32 | render("Hello World!"); |
---|
| 33 | } |
---|
| 34 | |
---|
| 35 | /** |
---|
| 36 | * another dummy method |
---|
| 37 | */ |
---|
| 38 | def sayWeather = { |
---|
| 39 | render("The weather is pretty good!"); |
---|
| 40 | } |
---|
[12] | 41 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.