01: package org.ztemplates.test.actions.classes.test1;
02:
03: import org.ztemplates.actions.ZGetter;
04: import org.ztemplates.actions.ZMatch;
05: import org.ztemplates.actions.ZSetter;
06:
07: /**
08: */
09: @ZMatch(value="audiobooks/category/${title}_${categoryId}[/page/${pageNum}][/sortby-${sortBy}]",parameters={"param1"})
10: public class Handler2 {
11: private String title;
12:
13: private String categoryId;
14:
15: private String pageNum;
16:
17: private String sortBy;
18:
19: private String param1;
20:
21: public String getCategoryId() {
22: return categoryId;
23: }
24:
25: public void setCategoryId(String categoryId) {
26: this .categoryId = categoryId;
27: }
28:
29: public String getPageNum() {
30: return pageNum;
31: }
32:
33: @ZSetter("pageNum")
34: public void setPageNum(String pageNum) {
35: this .pageNum = pageNum;
36: }
37:
38: @ZGetter("sortBy")
39: public String getSortBy() {
40: return sortBy;
41: }
42:
43: @ZSetter("sortBy")
44: public void setSortBy(String sortBy) {
45: this .sortBy = sortBy;
46: }
47:
48: @ZGetter("title")
49: public String getTitle() {
50: return title;
51: }
52:
53: @ZSetter("title")
54: public void setTitle(String title) {
55: this .title = title;
56: }
57:
58: @ZGetter("param1")
59: public String getParam1() {
60: return param1;
61: }
62:
63: @ZSetter("param1")
64: public void setParam1(String param1) {
65: this.param1 = param1;
66: }
67: }
|