1 57 58 package mime; 59 60 import java.awt.Image ; 61 62 import javax.activation.DataHandler ; 63 64 public interface Mime { 65 public String dataHandlerToString(DataHandler dh); 66 public DataHandler stringToDataHandler(String buff); 67 68 public String plainTextToString(String s); 69 public String stringToPlainText(String buff); 70 71 public Image bounceImage(Image im); 72 public DataHandler bounceImage2(DataHandler dh); 73 public DataHandler bounceImage4(boolean b, DataHandler dh); 77 78 83 public String orMultiMimeParts(DataHandler dh); 84 public String andMultiMimeParts(DataHandler dh, DataHandler dh2); 85 86 89 public String noContent(String s); 90 public String typeStar(DataHandler dh); 91 public String soapBodyParts1(boolean shouldBounce, DataHandler dh); 92 public String soapBodyParts2(DataHandler dh); 93 public String soapBodyParts3(boolean shouldBounce); 94 public String soapBodyParts4(); 95 public String arrayOfBinary(DataHandler dh); 96 public DataHandler optionalSoapBody(DataHandler dh); 97 public String mixMimeParts( 98 String pos1, 99 DataHandler dh1, 100 String pos2, 101 DataHandler dh2, 102 String pos3); 103 104 public String badNoPart(DataHandler dh) throws Exception ; 105 public String badPart(DataHandler dh) throws Exception ; 106 public String badNested(DataHandler dh) throws Exception ; 107 public String badMixSoapMime(DataHandler dh) throws Exception ; 108 public String badMultipleSoapBodies(DataHandler dh) throws Exception ; 109 public String badSoapBodyType(DataHandler dh) throws Exception ; 110 } 111 | Popular Tags |