annotate target/scala-2.9.1/src_managed/main/routes_routing.scala @ 9:d050b7fb4cda

create getUserRequests action
author one
date Mon, 01 Oct 2012 20:23:19 +0900
parents 2122c50278bd
children 6aa0452a7f9f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
9
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
2 // @HASH:8bd085826bd380a3cbbff589f55d12bed544e145
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
3 // @DATE:Mon Oct 01 20:23:04 JST 2012
0
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 import play.core._
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 import play.core.Router._
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 import play.core.j._
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 import play.api.mvc._
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 import play.libs.F
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 import Router.queryString
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 object Routes extends Router.Routes {
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 // @LINE:6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 val controllers_Application_index0 = Route("GET", PathPattern(List(StaticPart("/"))))
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 // @LINE:7
9
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
22 val controllers_User_create1 = Route("PUT", PathPattern(List(StaticPart("/users/create/"),DynamicPart("name", """[^/]+"""))))
0
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24
6
d6afc58ce3f5 remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
25 // @LINE:8
9
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
26 val controllers_User_getUser2 = Route("GET", PathPattern(List(StaticPart("/users/browse/"),DynamicPart("name", """[^/]+"""))))
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
27
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
28
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
29 // @LINE:9
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
30 val controllers_User_getUserRequests3 = Route("GET", PathPattern(List(StaticPart("/users/requests/"),DynamicPart("name", """[^/]+"""))))
0
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
31
6
d6afc58ce3f5 remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
32
9
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
33 // @LINE:13
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
34 val controllers_Application_hello4 = Route("POST", PathPattern(List(StaticPart("/hello"))))
6
d6afc58ce3f5 remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
35
9
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
36
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
37 // @LINE:14
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
38 val controllers_Application_test5 = Route("GET", PathPattern(List(StaticPart("/test"))))
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
39
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
40
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
41 // @LINE:18
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
42 val controllers_Assets_at6 = Route("GET", PathPattern(List(StaticPart("/assets/"),DynamicPart("file", """.+"""))))
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
43
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
44 def documentation = List(("""GET""","""/""","""controllers.Application.index()"""),("""PUT""","""/users/create/$name<[^/]+>""","""controllers.User.create(name:String)"""),("""GET""","""/users/browse/$name<[^/]+>""","""controllers.User.getUser(name:String)"""),("""GET""","""/users/requests/$name<[^/]+>""","""controllers.User.getUserRequests(name:String)"""),("""POST""","""/hello""","""controllers.Application.hello()"""),("""GET""","""/test""","""controllers.Application.test()"""),("""GET""","""/assets/$file<.+>""","""controllers.Assets.at(path:String = "/public", file:String)"""))
0
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
45
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
46
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
47 def routes:PartialFunction[RequestHeader,Handler] = {
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
48
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
49 // @LINE:6
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
50 case controllers_Application_index0(params) => {
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
51 call {
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
52 invokeHandler(_root_.controllers.Application.index(), HandlerDef(this, "controllers.Application", "index", Nil))
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
53 }
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
54 }
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
55
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
56
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
57 // @LINE:7
9
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
58 case controllers_User_create1(params) => {
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
59 call(params.fromPath[String]("name", None)) { (name) =>
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
60 invokeHandler(_root_.controllers.User.create(name), HandlerDef(this, "controllers.User", "create", Seq(classOf[String])))
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
61 }
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
62 }
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
63
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
64
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
65 // @LINE:8
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
66 case controllers_User_getUser2(params) => {
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
67 call(params.fromPath[String]("name", None)) { (name) =>
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
68 invokeHandler(_root_.controllers.User.getUser(name), HandlerDef(this, "controllers.User", "getUser", Seq(classOf[String])))
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
69 }
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
70 }
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
71
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
72
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
73 // @LINE:9
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
74 case controllers_User_getUserRequests3(params) => {
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
75 call(params.fromPath[String]("name", None)) { (name) =>
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
76 invokeHandler(_root_.controllers.User.getUserRequests(name), HandlerDef(this, "controllers.User", "getUserRequests", Seq(classOf[String])))
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
77 }
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
78 }
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
79
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
80
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
81 // @LINE:13
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
82 case controllers_Application_hello4(params) => {
0
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
83 call {
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
84 invokeHandler(_root_.controllers.Application.hello(), HandlerDef(this, "controllers.Application", "hello", Nil))
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
85 }
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
86 }
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
87
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
88
9
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
89 // @LINE:14
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
90 case controllers_Application_test5(params) => {
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
91 call {
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
92 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
93 }
d6afc58ce3f5 remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
94 }
d6afc58ce3f5 remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
95
d6afc58ce3f5 remove target/
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
96
9
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
97 // @LINE:18
d050b7fb4cda create getUserRequests action
one
parents: 7
diff changeset
98 case controllers_Assets_at6(params) => {
0
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
99 call(Param[String]("path", Right("/public")), params.fromPath[String]("file", None)) { (path, file) =>
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
100 invokeHandler(_root_.controllers.Assets.at(path, file), HandlerDef(this, "controllers.Assets", "at", Seq(classOf[String], classOf[String])))
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
101 }
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
102 }
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
103
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
104 }
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
105
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
106 }
Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
107