From 7d1f2c5c2b79e6291985c35e6468fb49a2559940 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 9 Apr 2008 19:37:44 +0000 Subject: [PATCH] add private URI git-svn-id: http://trooper/svn/projects/jSite/trunk@673 c3eda9e8-030b-0410-8277-bc7414b0a119 --- src/net/pterodactylus/util/fcp/ARK.java | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/net/pterodactylus/util/fcp/ARK.java b/src/net/pterodactylus/util/fcp/ARK.java index 27c37f7..bc5e81e 100644 --- a/src/net/pterodactylus/util/fcp/ARK.java +++ b/src/net/pterodactylus/util/fcp/ARK.java @@ -11,6 +11,9 @@ public class ARK { /** The public URI of the ARK. */ private final String publicURI; + /** The private URI of the ARK. */ + private final String privateURI; + /** The number of the ARK. */ private final int number; @@ -23,10 +26,25 @@ public class ARK { * The number of the ARK */ public ARK(String publicURI, String number) { + this(publicURI, null, number); + } + + /** + * Creates a new ARK with the given URIs and number. + * + * @param publicURI + * The public URI of the ARK + * @param privateURI + * The private URI of the ARK + * @param number + * The number of the ARK + */ + public ARK(String publicURI, String privateURI, String number) { if ((publicURI == null) || (number == null)) { throw new NullPointerException(((publicURI == null) ? "publicURI" : "number") + " must not be null"); } this.publicURI = publicURI; + this.privateURI = privateURI; try { this.number = Integer.valueOf(number); } catch (NumberFormatException nfe1) { @@ -44,6 +62,15 @@ public class ARK { } /** + * Returns the private URI of the ARK. + * + * @return The private URI of the ARK + */ + public String getPrivateURI() { + return privateURI; + } + + /** * Returns the number of the ARK. * * @return The number of the ARK -- 2.7.4