1 package org.seasar.cubby.controller.impl;
2
3 import org.seasar.cubby.action.Accept;
4 import org.seasar.cubby.action.Action;
5 import org.seasar.cubby.action.ActionResult;
6 import org.seasar.cubby.action.Form;
7 import org.seasar.cubby.action.Path;
8 import org.seasar.cubby.action.RequestMethod;
9
10 public class MockAction extends Action {
11
12 public Object form = new Object();
13
14 public Object nullForm;
15
16 public ActionResult update() {
17 return null;
18 }
19
20 @Path("create")
21 public ActionResult insert() {
22 return null;
23 }
24
25 @Path("delete/{value,[0-9]+}")
26 public ActionResult delete() {
27 return null;
28 }
29
30 @Path("{name}")
31 public ActionResult name() {
32 return null;
33 }
34
35 @Path("update")
36 @Accept(RequestMethod.PUT)
37 public ActionResult update2() {
38
39 return null;
40 }
41
42 @Form("form")
43 public ActionResult legalForm() {
44 return null;
45 }
46
47 @Form("nullForm")
48 public ActionResult illegalForm() {
49 return null;
50 }
51
52 }