1 package net.javacoding.jspider.api.event.resource; 2 3 import net.javacoding.jspider.api.model.Resource; 4 5 8 public class MalformedURLFoundEvent extends ResourceRelatedEvent { 9 10 protected String malformedURL; 11 12 public MalformedURLFoundEvent ( Resource resource, String malformedURL ) { 13 super ( resource ); 14 this.malformedURL = malformedURL; 15 } 16 17 public String getComment() { 18 return "malformed url found in " + resource.getURL() + ": " + malformedURL; 19 } 20 21 public String getMalformedURL ( ) { 22 return malformedURL; 23 } 24 25 public Resource getResource ( ) { 26 return resource; 27 } 28 29 public String toString ( ) { 30 return getComment(); 31 } 32 33 } 34 | Popular Tags |