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/internet MimeBodyPart.java
Date Fri, 18 Apr 2003 08:53:43 GMT
haul        2003/04/18 01:53:43

  Added:       src/blocks/mail/mocks/javax/mail/internet MimeBodyPart.java
  Log:
  add missing mock class for sendmail
  
  Revision  Changes    Path
  1.1                  cocoon-2.1/src/blocks/mail/mocks/javax/mail/internet/MimeBodyPart.java
  
  Index: MimeBodyPart.java
  ===================================================================
  package javax.mail.internet;
  
  import java.io.IOException;
  import java.util.Enumeration;
  
  import javax.activation.DataHandler;
  import javax.mail.BodyPart;
  import javax.mail.MessagingException;
  
  
  /**
   * Mock class providing the declarations required to compile the Cocoon code when
   * the actual library is not present.
   * 
   * @version CVS $Id:
   */
  public class MimeBodyPart extends BodyPart implements MimePart {
  
      public MimeBodyPart(){
          throw new NoSuchMethodError("This is a mock object");
      }
  
      public boolean isMimeType(String type) throws MessagingException {
          return false;
      }
  
      public String getContentType() throws MessagingException {
          return null;
      }
  
      public void setText(String s) throws MessagingException {
      }
  
      public Object getContent() throws IOException, MessagingException {
          return null;
      }
  
      public Enumeration getAllHeaders() throws MessagingException {
          return null;
      }
  
      public String getDescription() throws MessagingException {
          return null;
      }
  
      public String getDisposition() throws MessagingException {
          return null;
      }
  
      public String getFileName() throws MessagingException {
          return null;
      }
  
      public void setDataHandler(DataHandler dh) throws MessagingException {
      }
  
      public void setFileName(String filename) throws MessagingException {
      }
  
  }
  
  
  

Mime
View raw message