1 17 package javax.jbi.messaging; 18 19 import java.util.Set ; 20 21 import javax.activation.DataHandler ; 22 import javax.security.auth.Subject ; 23 import javax.xml.transform.Source ; 24 25 public interface NormalizedMessage 26 { 27 void addAttachment(String id, DataHandler content) 28 throws MessagingException; 29 30 Source getContent(); 31 32 DataHandler getAttachment(String id); 33 34 Set getAttachmentNames(); 35 36 void removeAttachment(String id) 37 throws MessagingException; 38 39 void setContent(Source content) 40 throws MessagingException; 41 42 void setProperty(String name, Object value); 43 44 void setSecuritySubject(Subject subject); 45 46 Set getPropertyNames(); 47 48 Object getProperty(String name); 49 50 Subject getSecuritySubject(); 51 } 52 | Popular Tags |