|
From: <pe...@us...> - 2003-10-25 00:45:48
|
Update of /cvsroot/neuclear/neuclear-pay/src/java/org/neuclear/pay/receiver
In directory sc8-pr-cvs1:/tmp/cvs-serv7941/src/java/org/neuclear/pay/receiver
Modified Files:
PaymentReceiver.java
Log Message:
Fixed SmtpSender it now sends the messages.
Refactored CommandLineSigner. Now it simply signs files read from command line. However new class IdentityCreator
is subclassed and creates new Identities. You can subclass CommandLineSigner to create your own variants.
Several problems with configuration. Trying to solve at the moment. Updated PicoContainer to beta-2
Index: PaymentReceiver.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-pay/src/java/org/neuclear/pay/receiver/PaymentReceiver.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** PaymentReceiver.java 21 Oct 2003 22:29:09 -0000 1.3
--- PaymentReceiver.java 25 Oct 2003 00:38:43 -0000 1.4
***************
*** 2,5 ****
--- 2,6 ----
import org.neuclear.id.SignedNamedObject;
+ import org.neuclear.id.verifier.VerifyingReader;
import org.neuclear.ledger.InvalidTransactionException;
import org.neuclear.ledger.LowlevelLedgerException;
***************
*** 8,15 ****
import org.neuclear.pay.*;
import org.neuclear.pay.contracts.TransferContract;
import org.neuclear.pay.contracts.builders.TransferReceiptBuilder;
import org.neuclear.receiver.Receiver;
import org.neuclear.receiver.UnsupportedTransaction;
- import org.neuclear.commons.NeuClearException;
import org.neudist.xml.ElementProxy;
import org.neudist.xml.xmlsec.XMLSecurityException;
--- 9,16 ----
import org.neuclear.pay.*;
import org.neuclear.pay.contracts.TransferContract;
+ import org.neuclear.pay.contracts.TransferGlobals;
import org.neuclear.pay.contracts.builders.TransferReceiptBuilder;
import org.neuclear.receiver.Receiver;
import org.neuclear.receiver.UnsupportedTransaction;
import org.neudist.xml.ElementProxy;
import org.neudist.xml.xmlsec.XMLSecurityException;
***************
*** 38,42 ****
/**
- *
* User: pelleb
* Date: Sep 23, 2003
--- 39,42 ----
***************
*** 53,58 ****
/**
* Add your main transaction processing logic within this method.
! * @param obj
! * @throws UnsupportedTransaction
*/
public final ElementProxy receive(SignedNamedObject obj) throws UnsupportedTransaction {
--- 53,59 ----
/**
* Add your main transaction processing logic within this method.
! *
! * @param obj
! * @throws UnsupportedTransaction
*/
public final ElementProxy receive(SignedNamedObject obj) throws UnsupportedTransaction {
***************
*** 74,79 ****
} catch (LowlevelLedgerException e) {
e.printStackTrace();
- } catch (NeuClearException e) {
- e.printStackTrace();
} catch (InsufficientFundsException e) {
e.printStackTrace();
--- 75,78 ----
***************
*** 96,98 ****
--- 95,102 ----
private final String asset;
private PrivateKey signer;
+
+ {
+ // Registers the readers for transfers
+ VerifyingReader.getInstance().registerReader(TransferGlobals.XFER_TAGNAME, new TransferContract.Reader());
+ }
}
|