01: /**********************************************************************************
02:
03: Feedzeo!
04: A free and open source RSS/Atom/RDF feed aggregator
05:
06: Copyright (C) 2005-2006 Anand Rao (anandrao@users.sourceforge.net)
07:
08: This library is free software; you can redistribute it and/or
09: modify it under the terms of the GNU Lesser General Public
10: License as published by the Free Software Foundation; either
11: version 2.1 of the License, or (at your option) any later version.
12:
13: This library is distributed in the hope that it will be useful,
14: but WITHOUT ANY WARRANTY; without even the implied warranty of
15: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16: Lesser General Public License for more details.
17:
18: You should have received a copy of the GNU Lesser General Public
19: License along with this library; if not, write to the Free Software
20: Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21:
22: ************************************************************************************/package layout;
23:
24: import util.*;
25:
26: /**
27: *
28: * @author Anand Rao
29: */
30: public class PageRequest {
31:
32: /* itemindex is used to keep track of which itemdata is to be used while populating
33: the page */
34: public int ItemIndex;
35:
36: /* category and feedsource to be used while generating this page */
37: private String Category;
38: private String feedSourceLink;
39:
40: private String LocationPath;
41: private String HTMLfilename;
42: private String HTMLTableDatafilename;
43:
44: private String PageLayoutName;
45:
46: /** Creates a new instance of PageRequest */
47: public PageRequest(String Category, String feedSourceLink,
48: String LocationPath, String HTMLfilename,
49: String HTMLTableDatafilename, String PageLayoutName) {
50: ItemIndex = -1;
51: this .Category = Category;
52: this .feedSourceLink = feedSourceLink;
53:
54: this .LocationPath = LocationPath;
55: this .HTMLfilename = HTMLfilename;
56: this .HTMLTableDatafilename = HTMLTableDatafilename;
57: this .PageLayoutName = PageLayoutName;
58: }
59:
60: public String getPageLayoutName() {
61: return PageLayoutName;
62: }
63:
64: public String getFullHTMLFileName() {
65: return FileUtils.getFullFileName(LocationPath, HTMLfilename);
66: }
67:
68: public String getFullHTMLTableDataFileName() {
69: return FileUtils.getFullFileName(LocationPath,
70: HTMLTableDatafilename);
71: }
72:
73: public String getHTMLFileName() {
74: return HTMLfilename;
75: }
76:
77: public String getHTMLTableDataFileName() {
78: return HTMLTableDatafilename;
79: }
80:
81: public String getLocationPath() {
82: return LocationPath;
83: }
84:
85: public String getFeedCategory() {
86: return Category;
87: }
88:
89: public String getFeedSourceURL() {
90: return feedSourceLink;
91: }
92:
93: }
|