1 2 3 4 package net.nutch.protocol; 5 6 import java.io.IOException ; 7 import java.net.URL ; 8 9 11 public class ResourceMoved extends IOException { 12 private URL oldUrl; 13 private URL newUrl; 14 15 public ResourceMoved(URL oldUrl, URL newUrl, String message) { 16 super(message); 17 this.newUrl = newUrl; 18 this.oldUrl = oldUrl; 19 } 20 21 public URL getNewUrl() { return newUrl; } 22 public URL getOldUrl() { return oldUrl; } 23 } 24 | Popular Tags |