/** A GUID for this Sone. */
private final UUID id = UUID.randomUUID();
+ /** The name of this Sone. */
+ private final String name;
+
/** The URI under which the Sone is stored in Freenet. */
private final FreenetURI requestUri;
/**
* Creates a new Sone.
*
+ * @param name
+ * The name of the Sone
* @param requestUri
* The request URI of the Sone
*/
- public Sone(FreenetURI requestUri) {
- this(requestUri, null);
+ public Sone(String name, FreenetURI requestUri) {
+ this(name, requestUri, null);
}
/**
* Creates a new Sone.
*
+ * @param name
+ * The name of the Sone
* @param requestUri
* The request URI of the Sone
* @param insertUri
* The insert URI of the Sone
*/
- public Sone(FreenetURI requestUri, FreenetURI insertUri) {
+ public Sone(String name, FreenetURI requestUri, FreenetURI insertUri) {
+ this.name = name;
this.requestUri = requestUri;
this.insertUri = insertUri;
}
}
/**
+ * Returns the name of this Sone.
+ *
+ * @return The name of this Sone
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
* Returns the request URI of this Sone.
*
* @return The request URI of this Sone