cziegeler 2003/10/06 04:47:42
Modified: src/blocks/mail/java/org/apache/cocoon/mail/transformation
SendMailTransformer.java
Log:
Adding missing recycle method
Revision Changes Path
1.5 +23 -3
cocoon-2.1/src/blocks/mail/java/org/apache/cocoon/mail/transformation/SendMailTransformer.java
Index: SendMailTransformer.java
===================================================================
RCS file:
/home/cvs/cocoon-2.1/src/blocks/mail/java/org/apache/cocoon/mail/transformation/SendMailTransformer.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- SendMailTransformer.java 11 Aug 2003 20:41:26 -0000 1.4
+++ SendMailTransformer.java 6 Oct 2003 11:47:42 -0000 1.5
@@ -93,8 +93,12 @@
* furthermore a report, where a state to each sent mail can bee seen.
*
* <p>
- * The SendMailTransformer requires classes of the mail api from sun
which comes
- * with the mail.jar and activation.jar.
+ * The SendMailTransformer requires classes of the mail api from sun which
comes
+ * with the mail.jar and activation.jar.
+ * In order to use the SendMailtransformer, you have to download the
mail.jar
+ * from http://java.sun.com/products/javamail/ also like the activation.jar
+ * from http://java.sun.com/products/javabeans/glasgow/jaf.html
+ * and install it in the Cocoon lib directory.
* </p>
* <p>
* These two parameters can be defined already in the components-secion
of the sitemap:
@@ -694,6 +698,22 @@
return iaArr;
}
+ public void recycle() {
+ this.toAddresses = null;
+ this.attachments = null;
+ this.subject = null;
+ this.body = null;
+ this.bodyURI = null;
+ this.mailHost = null;
+ this.fromAddress = null;
+ this.attachmentDescriptor = null;
+ this.port = 0;
+ this.contextPath = null;
+ this.sendPartial = true;
+ this.smtpMessage = null;
+ super.recycle();
+ }
+
class AttachmentDescriptor {
String strAttrName = null;
String strAttrMimeType = null;