1 22 package org.objectweb.petals.engine.csv.Mock; 23 24 import java.util.Set ; 25 26 import javax.activation.DataHandler ; 27 import javax.jbi.messaging.MessagingException; 28 import javax.jbi.messaging.NormalizedMessage; 29 import javax.security.auth.Subject ; 30 import javax.xml.transform.Source ; 31 32 39 public class MockNormalizedMessage implements NormalizedMessage{ 40 41 public void addAttachment(String id, DataHandler content) throws MessagingException { 42 43 } 44 45 public DataHandler getAttachment(String id) { 46 return null; 47 } 48 49 public Set getAttachmentNames() { 50 return null; 51 } 52 53 private Source content; 54 55 public Source getContent() { 56 return content; 57 } 58 59 public Object getProperty(String name) { 60 return null; 61 } 62 63 public Set getPropertyNames() { 64 return null; 65 } 66 67 public Subject getSecuritySubject() { 68 return null; 69 } 70 71 public void removeAttachment(String id) throws MessagingException { 72 } 73 74 public void setContent(Source content) throws MessagingException { 75 this.content = content; 76 } 77 78 public void setProperty(String name, Object value) { 79 } 80 81 public void setSecuritySubject(Subject subject) { 82 } 83 84 } 85 | Popular Tags |