forked from jooby-project/jooby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIssue1387.java
More file actions
44 lines (34 loc) · 892 Bytes
/
Issue1387.java
File metadata and controls
44 lines (34 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package source;
import io.jooby.annotations.ContextParam;
import io.jooby.annotations.GET;
import io.jooby.annotations.Path;
import io.jooby.annotations.SessionParam;
import java.util.Map;
@Path("/1387")
public class Issue1387 {
public static class Data1387 {}
@GET
public String attribute(@ContextParam String userId) {
return userId;
}
@GET("/primitive")
public int attribute(@ContextParam int userId) {
return userId;
}
@GET("/complex")
public Data1387 attributeComplex(@ContextParam Data1387 data) {
return data;
}
@GET("/attributes")
public Map<String, Object> attributes(@ContextParam Map<String, Object> attributes) {
return attributes;
}
@GET("/session")
public String session(@SessionParam String userId) {
return userId;
}
@GET("/session/int")
public int session(@SessionParam int userId) {
return userId;
}
}