2 * © 2009 David ‘Bombe’ Roden
4 package net.pterodactylus.arachne.core;
6 import de.ina.util.validation.Validation;
9 * Container for a freenet site. A freenet site consists of the routing and
10 * decryption keys and the basename, without the edition.
12 * @author David ‘Bombe’ Roden <bombe@pterodactylus.net>
16 /** The key of the site. */
17 private final String key;
19 /** The basename of the site. */
20 private final String basename;
23 * Creates a new site with the given key and basename.
28 * The basename of the site
30 public Site(String key, String basename) {
31 Validation.begin().isNotNull("key", (Object) key).isNotNull("basename", (Object) basename).check();
33 this.basename = basename;
37 * The routing and decryption keys of the site.
39 * @return The site’s routing and decryption keys
41 public String getKey() {
46 * Returns the basename of the site, without the edition number.
48 * @return The site’s basename
50 public String getBasename() {