You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by ha...@apache.org on 2003/04/17 22:28:28 UTC
cvs commit: cocoon-2.1/src/blocks/mail/mocks/javax/mail/internet AddressException.java InternetAddress.java MimeMessage.java MimeMultipart.java
haul 2003/04/17 13:28:28
Modified: src/blocks/mail/mocks/javax/mail/internet
AddressException.java InternetAddress.java
MimeMessage.java MimeMultipart.java
Log:
improved sendmail action and logicsheet
includes attachments and more
thanks to Frank Ridderbusch <frank.ridderbusch AT fujitsu-siemens.com>
Revision Changes Path
1.3 +7 -1 cocoon-2.1/src/blocks/mail/mocks/javax/mail/internet/AddressException.java
Index: AddressException.java
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/mail/mocks/javax/mail/internet/AddressException.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- AddressException.java 10 Mar 2003 16:35:44 -0000 1.2
+++ AddressException.java 17 Apr 2003 20:28:28 -0000 1.3
@@ -10,4 +10,10 @@
*/
public class AddressException extends MessagingException {
+ public AddressException() {
+ }
+
+ public AddressException(String s){
+ }
+
}
1.3 +16 -11 cocoon-2.1/src/blocks/mail/mocks/javax/mail/internet/InternetAddress.java
Index: InternetAddress.java
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/mail/mocks/javax/mail/internet/InternetAddress.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- InternetAddress.java 10 Mar 2003 16:35:44 -0000 1.2
+++ InternetAddress.java 17 Apr 2003 20:28:28 -0000 1.3
@@ -10,15 +10,20 @@
*/
public class InternetAddress extends Address {
- public InternetAddress(String from) {
+ public InternetAddress(String from) {
throw new NoSuchMethodError("This is a mock object");
- }
-
- public String getAddress() {
- throw new NoSuchMethodError("This is a mock object");
- }
-
- public String getPersonal() {
- throw new NoSuchMethodError("This is a mock object");
- }
+ }
+
+ public String getAddress() {
+ throw new NoSuchMethodError("This is a mock object");
+ }
+
+ public String getPersonal() {
+ throw new NoSuchMethodError("This is a mock object");
+ }
+
+ public static InternetAddress[] parse(java.lang.String addresslist)
+ throws AddressException {
+ return null;
+ }
}
1.3 +54 -34 cocoon-2.1/src/blocks/mail/mocks/javax/mail/internet/MimeMessage.java
Index: MimeMessage.java
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/mail/mocks/javax/mail/internet/MimeMessage.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- MimeMessage.java 10 Mar 2003 16:35:44 -0000 1.2
+++ MimeMessage.java 17 Apr 2003 20:28:28 -0000 1.3
@@ -1,6 +1,9 @@
package javax.mail.internet;
+import javax.activation.DataHandler;
+import javax.mail.Address;
import javax.mail.Message;
+import javax.mail.Multipart;
import javax.mail.Session;
import javax.mail.MessagingException;
@@ -11,44 +14,61 @@
* @version CVS $Id$
*/
public class MimeMessage extends Message implements MimePart {
-
+
public MimeMessage(Session session) {
throw new NoSuchMethodError("This is a mock object");
}
-
+
public boolean isMimeType(String type) throws MessagingException {
- throw new NoSuchMethodError("This is a mock object");
+ throw new NoSuchMethodError("This is a mock object");
}
-
- public java.util.Enumeration getAllHeaders() throws MessagingException{
- throw new NoSuchMethodError("This is a mock object");
+
+ public java.util.Enumeration getAllHeaders() throws MessagingException {
+ throw new NoSuchMethodError("This is a mock object");
+ }
+
+ public String getContentType() throws MessagingException {
+ throw new NoSuchMethodError("This is a mock object");
+ }
+
+ public void setText(String s) throws MessagingException {
+ throw new NoSuchMethodError("This is a mock object");
+ }
+
+ public Object getContent() throws java.io.IOException, MessagingException {
+ throw new NoSuchMethodError("This is a mock object");
+ }
+
+ public String getDescription() throws MessagingException {
+ throw new NoSuchMethodError("This is a mock object");
+ }
+
+ public String getDisposition() throws MessagingException {
+ throw new NoSuchMethodError("This is a mock object");
+ }
+
+ public String getFileName() throws MessagingException {
+ throw new NoSuchMethodError("This is a mock object");
+ }
+
+ public String getMessageID() throws MessagingException {
+ throw new NoSuchMethodError("This is a mock object");
+ }
+
+ public void setRecipients(Message.RecipientType type, Address[] addresses)
+ throws MessagingException {
+ }
+
+ public void setText(java.lang.String text, java.lang.String charset)
+ throws MessagingException {
+ }
+
+ public void setDataHandler(DataHandler dh) throws MessagingException {
+ }
+
+ public void setFileName(String filename) throws MessagingException {
}
- public String getContentType() throws MessagingException{
- throw new NoSuchMethodError("This is a mock object");
- }
-
- public void setText(String s) throws MessagingException {
- throw new NoSuchMethodError("This is a mock object");
- }
-
- public Object getContent() throws java.io.IOException, MessagingException {
- throw new NoSuchMethodError("This is a mock object");
- }
-
- public String getDescription() throws MessagingException {
- throw new NoSuchMethodError("This is a mock object");
- }
-
- public String getDisposition() throws MessagingException {
- throw new NoSuchMethodError("This is a mock object");
- }
-
- public String getFileName() throws MessagingException {
- throw new NoSuchMethodError("This is a mock object");
- }
-
- public String getMessageID() throws MessagingException {
- throw new NoSuchMethodError("This is a mock object");
- }
+ public void setContent(Multipart mp) throws MessagingException {
+ }
}
1.2 +12 -8 cocoon-2.1/src/blocks/mail/mocks/javax/mail/internet/MimeMultipart.java
Index: MimeMultipart.java
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/mail/mocks/javax/mail/internet/MimeMultipart.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MimeMultipart.java 10 Mar 2003 16:35:44 -0000 1.1
+++ MimeMultipart.java 17 Apr 2003 20:28:28 -0000 1.2
@@ -1,18 +1,22 @@
package javax.mail.internet;
+import javax.mail.BodyPart;
+import javax.mail.MessagingException;
+import javax.mail.Multipart;
+
/**
* Mock class providing the declarations required to compile the Cocoon code when
* the actual library is not present.
*
* @version CVS $Id:
*/
-public class MimeMultipart {
+public class MimeMultipart extends Multipart {
+
+ public int getCount() {
+ throw new NoSuchMethodError("This is a mock object");
+ }
- public int getCount() {
- throw new NoSuchMethodError("This is a mock object");
- }
-
- public javax.mail.BodyPart getBodyPart(int index) {
- throw new NoSuchMethodError("This is a mock object");
- }
+ public BodyPart getBodyPart(int index) throws MessagingException {
+ throw new NoSuchMethodError("This is a mock object");
+ }
}