1 /** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2 * Copyright 2008 Ledermueller Achim
4 * serc is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * **/
18 import java
.util
.Vector
;
22 public Vector
<URL
> urls
;
23 public static int counter
= 0;
26 //Resolver sets this var.
27 private URL relevantUrl
;
28 private URL relevantDomain
;
29 private URL relevantFile
;
32 urls
= new Vector
<URL
>();
38 urls
= new Vector
<URL
>();
44 public void addUrl(URL url
) {
48 public String
toString() {
49 String str
= "------Result------\n";
50 for(int i
=0; i
<urls
.size(); i
++) {
51 str
+= "Result.url: " + i
+"\n";
52 str
+= ">> " + urls
.get(i
).getHost() + "\n";
53 str
+= ">> " + urls
.get(i
).getFile() + "\n";
54 str
+= ">> " + urls
.get(i
).getQuery() + "\n";
60 public boolean isEmpty() {
67 public URL
getRelevantUrl() {
70 public void setRelevantUrl(URL url
) {
74 public URL
getRelevantDomain() {
75 return relevantDomain
;
77 public void setRelevantDomain(URL url
) {
81 public URL
getRelevantFile() {
84 public void setRelevantFile(URL url
) {
87 public int getRank() {