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("audiobooks/category/${title}_${categoryId}[/page/${pageNum}][/sortby-${sortBy}]")
10: public class Handler1 {
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: public void setPageNum(String pageNum) {
34: this .pageNum = pageNum;
35: }
36:
37: public String getSortBy() {
38: return sortBy;
39: }
40:
41: public void setSortBy(String sortBy) {
42: this .sortBy = sortBy;
43: }
44:
45: @ZGetter("title")
46: public String getTitle() {
47: return title;
48: }
49:
50: @ZSetter("title")
51: public void setTitle(String title) {
52: this .title = title;
53: }
54:
55: @ZGetter("param1")
56: public String getParam1() {
57: return param1;
58: }
59:
60: @ZSetter("param1")
61: public void setParam1(String param1) {
62: this.param1 = param1;
63: }
64: }
|