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/18 10:53:43 UTC

cvs commit: cocoon-2.1/src/blocks/mail/mocks/javax/mail/internet MimeBodyPart.java

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 {
      }
  
  }