1 16 17 package org.springframework.mail.javamail; 18 19 import javax.activation.FileTypeMap ; 20 import javax.mail.Session ; 21 import javax.mail.internet.MimeMessage ; 22 23 38 class SmartMimeMessage extends MimeMessage { 39 40 private final String defaultEncoding; 41 42 private final FileTypeMap defaultFileTypeMap; 43 44 45 51 public SmartMimeMessage(Session session, String defaultEncoding, FileTypeMap defaultFileTypeMap) { 52 super(session); 53 this.defaultEncoding = defaultEncoding; 54 this.defaultFileTypeMap = defaultFileTypeMap; 55 } 56 57 60 public String getDefaultEncoding() { 61 return defaultEncoding; 62 } 63 64 67 public FileTypeMap getDefaultFileTypeMap() { 68 return defaultFileTypeMap; 69 } 70 71 } 72 | Popular Tags |