View Javadoc

1   
2   /*
3    * SmartCrawler
4    *
5    * $Id: Response.java,v 1.2 2005/07/08 12:09:34 vincool Exp $
6    * Copyright 2005 Davide Pozza
7    *
8    * This program is free software; you can redistribute it
9    * and/or modify it under the terms of the GNU General Public
10   * License as published by the Free Software Foundation;
11   * either version 2 of the License, or (at your option) any
12   * later version.
13   *
14   * This program is distributed in the hope that it will be
15   * useful, but WITHOUT ANY WARRANTY; without even the implied
16   * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
17   * PURPOSE. See the GNU General Public License for more
18   * details.
19   *
20   * You should have received a copy of the GNU General Public
21   * License along with this program; if not, write to the Free
22   * Software Foundation, Inc., 59 Temple Place, Suite 330,
23   * Boston, MA 02111-1307 USA
24   *
25   */
26  
27  package org.smartcrawler.retriever;
28  
29  import org.smartcrawler.common.Link;
30  
31  /***
32   *
33   *
34   * @author <a href="mailto:pozzad@alice.it">Davide Pozza</a>
35   * @version <tt>$Revision: 1.2 $</tt>
36   */
37  public class Response {
38  
39      private String statusLine;
40      private boolean redirected;
41      private boolean found;
42      private Link redirection;
43      private Content content;
44  
45      /***
46       * Creates a new instance of Response
47       */
48      public Response() {
49      }
50  
51      /***
52       *
53       * @return
54       */
55      public String getStatusLine() {
56          return statusLine;
57      }
58  
59      /***
60       *
61       * @param statusLine
62       */
63      public void setStatusLine(String statusLine) {
64          this.statusLine = statusLine;
65      }
66  
67      /***
68       *
69       * @return
70       */
71      public boolean isRedirected() {
72          return redirected;
73      }
74  
75      /***
76       *
77       * @param redirected
78       */
79      public void setRedirected(boolean redirected) {
80          this.redirected = redirected;
81      }
82  
83      /***
84       *
85       * @return
86       */
87      public boolean isFound() {
88          return found;
89      }
90  
91      /***
92       *
93       * @param found
94       */
95      public void setFound(boolean found) {
96          this.found = found;
97      }
98  
99      /***
100      *
101      * @return
102      */
103     public Link getRedirection() {
104         return redirection;
105     }
106 
107     /***
108      *
109      * @param redirection
110      */
111     public void setRedirection(Link redirection) {
112         this.redirection = redirection;
113     }
114 
115     /***
116      *
117      * @return
118      */
119     public Content getContent() {
120         return content;
121     }
122 
123     /***
124      *
125      * @param content
126      */
127     public void setContent(Content content) {
128         this.content = content;
129     }
130 }