From: David ‘Bombe’ Roden Date: Sun, 15 Mar 2009 23:41:18 +0000 (+0100) Subject: Implementated adding a page by URL. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=d4f943d0df64a8e82dce8721b740d28dd5192d88;p=arachne.git Implementated adding a page by URL. --- diff --git a/src/net/pterodactylus/arachne/core/Core.java b/src/net/pterodactylus/arachne/core/Core.java index bb73b0a..a2c50cd 100644 --- a/src/net/pterodactylus/arachne/core/Core.java +++ b/src/net/pterodactylus/arachne/core/Core.java @@ -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)); } /**