|
From: <pe...@us...> - 2003-09-24 23:56:57
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/receiver
In directory sc8-pr-cvs1:/tmp/cvs-serv524/src/java/org/neuclear/receiver
Modified Files:
Receiver.java ReceiverServlet.java
Log Message:
Refactoring nearly done. New model for creating signed objects.
With view for supporting the xmlpull api shortly for performance reasons.
Currently still uses dom4j but that has been refactored out that it
should now be very quick to implement a xmlpull implementation.
A side benefit of this is that the API has been further simplified. I still have some work
todo with regards to cleaning up some of the outlying parts of the code.
Index: Receiver.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/receiver/Receiver.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Receiver.java 23 Sep 2003 19:16:28 -0000 1.3
--- Receiver.java 24 Sep 2003 23:56:48 -0000 1.4
***************
*** 9,12 ****
--- 9,21 ----
* $Id$
* $Log$
+ * Revision 1.4 2003/09/24 23:56:48 pelle
+ * Refactoring nearly done. New model for creating signed objects.
+ * With view for supporting the xmlpull api shortly for performance reasons.
+ * Currently still uses dom4j but that has been refactored out that it
+ * should now be very quick to implement a xmlpull implementation.
+ *
+ * A side benefit of this is that the API has been further simplified. I still have some work
+ * todo with regards to cleaning up some of the outlying parts of the code.
+ *
* Revision 1.3 2003/09/23 19:16:28 pelle
* Changed NameSpace to Identity.
***************
*** 34,38 ****
import org.neuclear.id.InvalidIdentityException;
! import org.neuclear.id.NamedObject;
import org.neudist.utils.NeudistException;
--- 43,47 ----
import org.neuclear.id.InvalidIdentityException;
! import org.neuclear.id.SignedNamedObject;
import org.neudist.utils.NeudistException;
***************
*** 45,49 ****
/**
* Add your main transaction processing logic within this method.
! * Remember you must check the validity of the NamedObject here. Until you do so
* you can not trust it.
* @param obj
--- 54,58 ----
/**
* Add your main transaction processing logic within this method.
! * Remember you must check the validity of the SignedNamedObject here. Until you do so
* you can not trust it.
* @param obj
***************
*** 51,54 ****
* @throws NeudistException
*/
! void receive(NamedObject obj) throws InvalidIdentityException, NeudistException;
}
--- 60,63 ----
* @throws NeudistException
*/
! void receive(SignedNamedObject obj) throws InvalidIdentityException, NeudistException;
}
Index: ReceiverServlet.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/receiver/ReceiverServlet.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ReceiverServlet.java 22 Sep 2003 19:24:02 -0000 1.2
--- ReceiverServlet.java 24 Sep 2003 23:56:48 -0000 1.3
***************
*** 2,5 ****
--- 2,14 ----
* $Id$
* $Log$
+ * Revision 1.3 2003/09/24 23:56:48 pelle
+ * Refactoring nearly done. New model for creating signed objects.
+ * With view for supporting the xmlpull api shortly for performance reasons.
+ * Currently still uses dom4j but that has been refactored out that it
+ * should now be very quick to implement a xmlpull implementation.
+ *
+ * A side benefit of this is that the API has been further simplified. I still have some work
+ * todo with regards to cleaning up some of the outlying parts of the code.
+ *
* Revision 1.2 2003/09/22 19:24:02 pelle
* More fixes throughout to problems caused by renaming.
***************
*** 55,59 ****
import org.dom4j.DocumentHelper;
import org.dom4j.Element;
! import org.neuclear.id.NamedObject;
import org.neuclear.id.NamedObjectFactory;
import org.neudist.utils.NeudistException;
--- 64,68 ----
import org.dom4j.DocumentHelper;
import org.dom4j.Element;
! import org.neuclear.id.SignedNamedObject;
import org.neuclear.id.NamedObjectFactory;
import org.neudist.utils.NeudistException;
***************
*** 73,77 ****
System.out.println("NEUDIST: Got Storage Request " + soapAction);
System.out.println(request.asXML());
! NamedObject named = NamedObjectFactory.createNamedObject(request);
receiver.receive(named);
return OK;
--- 82,86 ----
System.out.println("NEUDIST: Got Storage Request " + soapAction);
System.out.println(request.asXML());
! SignedNamedObject named = NamedObjectFactory.createNamedObject(request);
receiver.receive(named);
return OK;
|