|
From: <pe...@us...> - 2003-10-25 00:42:58
|
Update of /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/senders
In directory sc8-pr-cvs1:/tmp/cvs-serv8101/src/java/org/neuclear/senders
Modified Files:
SmtpSender.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: SmtpSender.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-id/src/java/org/neuclear/senders/SmtpSender.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** SmtpSender.java 21 Oct 2003 22:31:13 -0000 1.7
--- SmtpSender.java 25 Oct 2003 00:39:54 -0000 1.8
***************
*** 8,11 ****
--- 8,17 ----
* $Id$
* $Log$
+ * Revision 1.8 2003/10/25 00:39:54 pelle
+ * 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
+ *
* Revision 1.7 2003/10/21 22:31:13 pelle
* Renamed NeudistException to NeuClearException and moved it to org.neuclear.commons where it makes more sense.
***************
*** 54,62 ****
*/
- import org.neuclear.id.SignedNamedObject;
- import org.neuclear.id.Named;
- import org.neuclear.id.builders.NamedObjectBuilder;
import org.neuclear.commons.NeuClearException;
import org.neudist.utils.Utility;
import javax.mail.*;
--- 60,67 ----
*/
import org.neuclear.commons.NeuClearException;
+ import org.neuclear.id.builders.NamedObjectBuilder;
import org.neudist.utils.Utility;
+ import org.neudist.xml.XMLException;
import javax.mail.*;
***************
*** 100,104 ****
multi.addBodyPart(body);
BodyPart objpart = new MimeBodyPart();
! //TODO How do we replace this objpart.setText(obj.asXML());
objpart.setHeader("Content-type", "application/nsdl");
multi.addBodyPart(objpart);
--- 105,109 ----
multi.addBodyPart(body);
BodyPart objpart = new MimeBodyPart();
! objpart.setText(obj.asXML());
objpart.setHeader("Content-type", "application/nsdl");
multi.addBodyPart(objpart);
***************
*** 112,115 ****
--- 117,123 ----
} catch (MessagingException e) {
e.printStackTrace(); //To change body of catch statement use Options | File Templates.
+ Utility.rethrowException(e);
+ } catch (XMLException e) {
+ e.printStackTrace();
Utility.rethrowException(e);
}
|