Implementated adding a page by URL.
[arachne.git] / src / net / pterodactylus / arachne / core / Core.java
index 9efc960..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));
        }
 
        /**
@@ -109,7 +110,7 @@ public class Core extends AbstractService {
        //
 
        /**
-        * {@inheritdoc}
+        * {@inheritDoc}
         *
         * @see de.ina.util.service.AbstractService#serviceRun()
         */