Implementated adding a page by URL.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 15 Mar 2009 23:41:18 +0000 (00:41 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sun, 15 Mar 2009 23:41:18 +0000 (00:41 +0100)
src/net/pterodactylus/arachne/core/Core.java

index bb73b0a..a2c50cd 100644 (file)
@@ -77,6 +77,7 @@ public class Core extends AbstractService {
         */
        public void addPage(URL url) {
                Validation.begin().isNotNull("url", url).check().isEqual("url.getHost()", url.getHost(), (Object) nodeHost).isEqual("url.getPort()", url.getPort(), nodePort).check();
+               addPage(Page.fromURL(url));
        }
 
        /**