[Webfunds-commits] java/webfunds/sox EncryptedRequest.java

Ian Grigg iang@cypherpunks.ai
Fri, 13 Oct 2000 21:31:54 -0400 (AST)


iang        00/10/13 21:31:54

  Modified:    webfunds/sox EncryptedRequest.java
  Log:
  added NymRe*; formatting

Revision  Changes    Path
1.12      +11 -10    java/webfunds/sox/EncryptedRequest.java

Index: EncryptedRequest.java
===================================================================
RCS file: /home/webfunds/cvsroot/java/webfunds/sox/EncryptedRequest.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- EncryptedRequest.java	1999/12/10 14:07:40	1.11
+++ EncryptedRequest.java	2000/10/14 01:31:54	1.12
@@ -1,5 +1,5 @@
 /*
- * $Id: EncryptedRequest.java,v 1.11 1999/12/10 14:07:40 iang Exp $
+ * $Id: EncryptedRequest.java,v 1.12 2000/10/14 01:31:54 iang Exp $
  *
  * Copyright (c) Systemics Ltd 1995-1999 on behalf of
  * the WebFunds Development Team.  All Rights Reserved.
@@ -312,15 +312,16 @@
         if (inner == null)
             decodeHeader();
 
-            // decode throws IOException currently :(
-            if (type.equals(RegisterRequest.name))
-                req = new RegisterRequest(inner);
-            else if (type.equals(MailRequest.name))
-                req = new MailRequest(inner);
-            else if (type.equals(TimeSyncRequest.name))
-                req = new TimeSyncRequest(inner);
-            else
-                req = decodeApplicationRequest(type, inner);
+        if (type.equals(RegisterRequest.name))
+            req = new RegisterRequest(inner);
+        else if (type.equals(MailRequest.name))
+            req = new MailRequest(inner);
+        else if (type.equals(TimeSyncRequest.name))
+            req = new TimeSyncRequest(inner);
+        else if (type.equals(NymRequest.name))    // hmm, optional!
+            req = new NymRequest(inner);
+        else
+            req = decodeApplicationRequest(type, inner);
 
         return req;
     }