001: /*
002: * This program is free software; you can redistribute it and/or modify
003: * it under the terms of the GNU General Public License as published by
004: * the Free Software Foundation; either version 2 of the License, or
005: * (at your option) any later version.
006: *
007: * This program is distributed in the hope that it will be useful,
008: * but WITHOUT ANY WARRANTY; without even the implied warranty of
009: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
010: * GNU Library General Public License for more details.
011: *
012: * You should have received a copy of the GNU General Public License
013: * along with this program; if not, write to the Free Software
014: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
015: */
016: package dlog4j.formbean;
017:
018: import java.util.Date;
019:
020: /**
021: * TrackBackÏî
022: * @author Liudong
023: */
024: public class TrackBackForm extends DlogActionForm {
025:
026: public final static String ERROR_KEY = "message";
027:
028: int id;
029: String title;
030: String excerpt;
031: String url;
032: String blog_name;
033: String remoteAddr;
034: Date refTime;
035: LogForm log;
036:
037: public int getLog_id() {
038: return (log != null) ? log.getId() : -1;
039: }
040:
041: public void setLog_id(int log_id) {
042: if (log == null)
043: log = new LogForm();
044: log.setId(log_id);
045: }
046:
047: public String getBlog_name() {
048: return blog_name;
049: }
050:
051: public void setBlog_name(String blog_name) {
052: this .blog_name = blog_name;
053: }
054:
055: public String getExcerpt() {
056: return excerpt;
057: }
058:
059: public void setExcerpt(String excerpt) {
060: this .excerpt = excerpt;
061: }
062:
063: public String getTitle() {
064: return title;
065: }
066:
067: public void setTitle(String title) {
068: this .title = title;
069: }
070:
071: public String getUrl() {
072: return url;
073: }
074:
075: public void setUrl(String url) {
076: this .url = url;
077: }
078:
079: public Date getRefTime() {
080: return refTime;
081: }
082:
083: public void setRefTime(Date refTime) {
084: this .refTime = refTime;
085: }
086:
087: public String getRemoteAddr() {
088: return remoteAddr;
089: }
090:
091: public void setRemoteAddr(String remoteAddr) {
092: this .remoteAddr = remoteAddr;
093: }
094:
095: public LogForm getLog() {
096: return log;
097: }
098:
099: public void setLog(LogForm log) {
100: this .log = log;
101: }
102:
103: public int getId() {
104: return id;
105: }
106:
107: public void setId(int id) {
108: this.id = id;
109: }
110: }
|