cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From h...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/mail/mocks/javax/mail BodyPart.java MessagingException.java Multipart.java Part.java Transport.java
Date Thu, 17 Apr 2003 20:27:03 GMT
haul        2003/04/17 13:27:03

  Modified:    src/blocks/mail/mocks/javax/mail BodyPart.java
                        MessagingException.java Multipart.java Part.java
                        Transport.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.2       +1 -1      cocoon-2.1/src/blocks/mail/mocks/javax/mail/BodyPart.java
  
  Index: BodyPart.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/mail/mocks/javax/mail/BodyPart.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BodyPart.java	10 Mar 2003 16:35:45 -0000	1.1
  +++ BodyPart.java	17 Apr 2003 20:27:03 -0000	1.2
  @@ -6,6 +6,6 @@
    * 
    * @version CVS $Id:
    */
  -public interface BodyPart extends Part {
  +public abstract class BodyPart implements Part {
   
   }
  
  
  
  1.3       +5 -1      cocoon-2.1/src/blocks/mail/mocks/javax/mail/MessagingException.java
  
  Index: MessagingException.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/mail/mocks/javax/mail/MessagingException.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MessagingException.java	10 Mar 2003 16:35:45 -0000	1.2
  +++ MessagingException.java	17 Apr 2003 20:27:03 -0000	1.3
  @@ -11,6 +11,10 @@
   	public MessagingException() {
   		throw new NoSuchMethodError("This is a mock object");
   	}
  +
  +    public MessagingException(String s) {
  +        throw new NoSuchMethodError("This is a mock object");
  +    }
   	
   	public MessagingException(String message, java.io.IOException ioe) {
   		throw new NoSuchMethodError("This is a mock object");
  
  
  
  1.2       +11 -8     cocoon-2.1/src/blocks/mail/mocks/javax/mail/Multipart.java
  
  Index: Multipart.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/mail/mocks/javax/mail/Multipart.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Multipart.java	10 Mar 2003 16:35:45 -0000	1.1
  +++ Multipart.java	17 Apr 2003 20:27:03 -0000	1.2
  @@ -8,11 +8,14 @@
    */
   public class Multipart {
   
  -	public int getCount() {
  -		throw new NoSuchMethodError("This is a mock object");
  -	}
  -	
  -	public Part getBodyPart(int index) {
  -		throw new NoSuchMethodError("This is a mock object");
  -	}
  -}
  +    public int getCount() {
  +        throw new NoSuchMethodError("This is a mock object");
  +    }
  +
  +    public BodyPart getBodyPart(int index) throws MessagingException {
  +        throw new NoSuchMethodError("This is a mock object");
  +    }
  +
  +    public void addBodyPart(BodyPart part) throws MessagingException {
  +    }
  +}
  \ No newline at end of file
  
  
  
  1.3       +16 -11    cocoon-2.1/src/blocks/mail/mocks/javax/mail/Part.java
  
  Index: Part.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/mail/mocks/javax/mail/Part.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Part.java	10 Mar 2003 16:35:45 -0000	1.2
  +++ Part.java	17 Apr 2003 20:27:03 -0000	1.3
  @@ -7,23 +7,28 @@
    * @version CVS $Id$
    */
   public interface Part {
  -	
  -	public static final String INLINE = null;
  -	public static final String ATTACHMENT = null;
  -	
  +
  +    public static final String INLINE = null;
  +    public static final String ATTACHMENT = null;
  +
       boolean isMimeType(String type) throws MessagingException;
   
       String getContentType() throws MessagingException;
   
       void setText(String s) throws MessagingException;
   
  -	Object getContent() throws java.io.IOException, MessagingException;
  +    Object getContent() throws java.io.IOException, MessagingException;
  +
  +    java.util.Enumeration getAllHeaders() throws MessagingException;
  +
  +    String getDescription() throws MessagingException;
  +
  +    String getDisposition() throws MessagingException;
   
  -	java.util.Enumeration getAllHeaders() throws MessagingException;
  +    String getFileName() throws MessagingException;
   
  -	String getDescription() throws MessagingException;
  +    void setDataHandler(javax.activation.DataHandler dh)
  +        throws MessagingException;
   
  -	String getDisposition() throws MessagingException;
  -	
  -	String getFileName() throws MessagingException;
  +    void setFileName(java.lang.String filename) throws MessagingException;
   }
  
  
  
  1.3       +2 -2      cocoon-2.1/src/blocks/mail/mocks/javax/mail/Transport.java
  
  Index: Transport.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/mail/mocks/javax/mail/Transport.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Transport.java	10 Mar 2003 16:35:45 -0000	1.2
  +++ Transport.java	17 Apr 2003 20:27:03 -0000	1.3
  @@ -8,7 +8,7 @@
    */
   public abstract class Transport {
   
  -	public static void send(Message message) {
  +	public static void send(Message message) throws MessagingException {
           throw new NoSuchMethodError("This is a mock object");
   	}
   }
  
  
  

Mime
View raw message