Author: xor
Date: 2008-11-14 12:51:18 +0000 (Fri, 14 Nov 2008)
New Revision: 23567
Modified:
trunk/plugins/WoT/introduction/IntroductionPuzzle.java
Log:
Add function for constructing the request uri.
Modified: trunk/plugins/WoT/introduction/IntroductionPuzzle.java
===================================================================
--- trunk/plugins/WoT/introduction/IntroductionPuzzle.java 2008-11-14
12:02:55 UTC (rev 23566)
+++ trunk/plugins/WoT/introduction/IntroductionPuzzle.java 2008-11-14
12:51:18 UTC (rev 23567)
@@ -176,7 +176,7 @@
* Get the URI at which to insert this puzzle.
* [EMAIL PROTECTED]|WoT|introduction|yyyy-MM-dd|#.xml
*/
- public FreenetURI getURI() throws MalformedURLException {
+ public FreenetURI getInsertURI() {
assert(mSolution != null); /* This function should only be
needed by the introduction server, not by clients. */
/* FIXME: I did not really understand the javadoc of
FreenetURI. Please verify that the following code actually creates an URI
@@ -185,7 +185,11 @@
FreenetURI baseURI =
((OwnIdentity)mInserter).getInsertURI().setKeyType("SSK");
return baseURI.setDocName(WoT.WOT_CONTEXT + "|" +
INTRODUCTION_CONTEXT + "|" + dayOfInsertion + "|" + mIndex + ".xml");
}
-
+
+ public FreenetURI getRequestURI() {
+ return generateRequestURI(mInserter, mDateOfInsertion, mIndex);
+ }
+
public static FreenetURI generateRequestURI(Identity inserter, Date
dateOfInsertion, int index) {
assert(dateOfInsertion.before(new Date()));
assert(index >= 0);
_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs