Mercurial > hg > Members > nobuyasu > Consensus
annotate target/scala-2.9.1/src_managed/main/routes_routing.scala @ 14:792fdb0c10bf
add ClaimModel.java
author | one |
---|---|
date | Tue, 02 Oct 2012 11:40:20 +0900 |
parents | 6aa0452a7f9f |
children | a134edaebf6f |
rev | line source |
---|---|
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
1 // @SOURCE:/Users/aotokage/workspace/Consensus/conf/routes |
14 | 2 // @HASH:c5bff1896dbd0de70fbb37de9930bcba9c8300e6 |
3 // @DATE:Tue Oct 02 10:41:54 JST 2012 | |
0 | 4 |
5 import play.core._ | |
6 import play.core.Router._ | |
7 import play.core.j._ | |
8 | |
9 import play.api.mvc._ | |
10 import play.libs.F | |
11 | |
12 import Router.queryString | |
13 | |
14 object Routes extends Router.Routes { | |
15 | |
16 | |
17 // @LINE:6 | |
18 val controllers_Application_index0 = Route("GET", PathPattern(List(StaticPart("/")))) | |
19 | |
20 | |
21 // @LINE:7 | |
14 | 22 val controllers_User_createUser1 = Route("PUT", PathPattern(List(StaticPart("/users/create/"),DynamicPart("name", """[^/]+""")))) |
0 | 23 |
24 | |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
25 // @LINE:8 |
9 | 26 val controllers_User_getUser2 = Route("GET", PathPattern(List(StaticPart("/users/browse/"),DynamicPart("name", """[^/]+""")))) |
27 | |
28 | |
29 // @LINE:9 | |
30 val controllers_User_getUserRequests3 = Route("GET", PathPattern(List(StaticPart("/users/requests/"),DynamicPart("name", """[^/]+""")))) | |
0 | 31 |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
32 |
11 | 33 // @LINE:10 |
34 val controllers_User_getUserConsensus4 = Route("GET", PathPattern(List(StaticPart("/users/consensus/"),DynamicPart("name", """[^/]+""")))) | |
35 | |
36 | |
37 // @LINE:11 | |
38 val controllers_User_getUserClaims5 = Route("GET", PathPattern(List(StaticPart("/users/claims/"),DynamicPart("name", """[^/]+""")))) | |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
39 |
9 | 40 |
11 | 41 // @LINE:16 |
42 val controllers_Application_hello6 = Route("POST", PathPattern(List(StaticPart("/hello")))) | |
9 | 43 |
44 | |
11 | 45 // @LINE:17 |
46 val controllers_Application_test7 = Route("GET", PathPattern(List(StaticPart("/test")))) | |
9 | 47 |
11 | 48 |
49 // @LINE:21 | |
50 val controllers_Assets_at8 = Route("GET", PathPattern(List(StaticPart("/assets/"),DynamicPart("file", """.+""")))) | |
51 | |
14 | 52 def documentation = List(("""GET""","""/""","""controllers.Application.index()"""),("""PUT""","""/users/create/$name<[^/]+>""","""controllers.User.createUser(name:String)"""),("""GET""","""/users/browse/$name<[^/]+>""","""controllers.User.getUser(name:String)"""),("""GET""","""/users/requests/$name<[^/]+>""","""controllers.User.getUserRequests(name:String)"""),("""GET""","""/users/consensus/$name<[^/]+>""","""controllers.User.getUserConsensus(name:String)"""),("""GET""","""/users/claims/$name<[^/]+>""","""controllers.User.getUserClaims(name:String)"""),("""POST""","""/hello""","""controllers.Application.hello()"""),("""GET""","""/test""","""controllers.Application.test()"""),("""GET""","""/assets/$file<.+>""","""controllers.Assets.at(path:String = "/public", file:String)""")) |
0 | 53 |
54 | |
55 def routes:PartialFunction[RequestHeader,Handler] = { | |
56 | |
57 // @LINE:6 | |
58 case controllers_Application_index0(params) => { | |
59 call { | |
60 invokeHandler(_root_.controllers.Application.index(), HandlerDef(this, "controllers.Application", "index", Nil)) | |
61 } | |
62 } | |
63 | |
64 | |
65 // @LINE:7 | |
14 | 66 case controllers_User_createUser1(params) => { |
9 | 67 call(params.fromPath[String]("name", None)) { (name) => |
14 | 68 invokeHandler(_root_.controllers.User.createUser(name), HandlerDef(this, "controllers.User", "createUser", Seq(classOf[String]))) |
9 | 69 } |
70 } | |
71 | |
72 | |
73 // @LINE:8 | |
74 case controllers_User_getUser2(params) => { | |
75 call(params.fromPath[String]("name", None)) { (name) => | |
76 invokeHandler(_root_.controllers.User.getUser(name), HandlerDef(this, "controllers.User", "getUser", Seq(classOf[String]))) | |
77 } | |
78 } | |
79 | |
80 | |
81 // @LINE:9 | |
82 case controllers_User_getUserRequests3(params) => { | |
83 call(params.fromPath[String]("name", None)) { (name) => | |
84 invokeHandler(_root_.controllers.User.getUserRequests(name), HandlerDef(this, "controllers.User", "getUserRequests", Seq(classOf[String]))) | |
85 } | |
86 } | |
87 | |
88 | |
11 | 89 // @LINE:10 |
90 case controllers_User_getUserConsensus4(params) => { | |
91 call(params.fromPath[String]("name", None)) { (name) => | |
92 invokeHandler(_root_.controllers.User.getUserConsensus(name), HandlerDef(this, "controllers.User", "getUserConsensus", Seq(classOf[String]))) | |
93 } | |
94 } | |
95 | |
96 | |
97 // @LINE:11 | |
98 case controllers_User_getUserClaims5(params) => { | |
99 call(params.fromPath[String]("name", None)) { (name) => | |
100 invokeHandler(_root_.controllers.User.getUserClaims(name), HandlerDef(this, "controllers.User", "getUserClaims", Seq(classOf[String]))) | |
101 } | |
102 } | |
103 | |
104 | |
105 // @LINE:16 | |
106 case controllers_Application_hello6(params) => { | |
0 | 107 call { |
108 invokeHandler(_root_.controllers.Application.hello(), HandlerDef(this, "controllers.Application", "hello", Nil)) | |
109 } | |
110 } | |
111 | |
112 | |
11 | 113 // @LINE:17 |
114 case controllers_Application_test7(params) => { | |
9 | 115 call { |
116 invokeHandler(_root_.controllers.Application.test(), HandlerDef(this, "controllers.Application", "test", Nil)) | |
6
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
117 } |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
118 } |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
119 |
d6afc58ce3f5
remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
0
diff
changeset
|
120 |
11 | 121 // @LINE:21 |
122 case controllers_Assets_at8(params) => { | |
0 | 123 call(Param[String]("path", Right("/public")), params.fromPath[String]("file", None)) { (path, file) => |
124 invokeHandler(_root_.controllers.Assets.at(path, file), HandlerDef(this, "controllers.Assets", "at", Seq(classOf[String], classOf[String]))) | |
125 } | |
126 } | |
127 | |
128 } | |
129 | |
130 } | |
131 |