1 22 package org.objectweb.petals.demo.mortgage.gui.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 37 public class NormalizedMessageMock implements NormalizedMessage { 38 39 public void addAttachment(String id, DataHandler content) 40 throws MessagingException { 41 } 42 43 public DataHandler getAttachment(String id) { 44 return null; 45 } 46 47 public Set getAttachmentNames() { 48 return null; 49 } 50 51 public Source getContent() { 52 return content; 53 } 54 55 public Object getProperty(String name) { 56 return null; 57 } 58 59 public Set getPropertyNames() { 60 return null; 61 } 62 63 public Subject getSecuritySubject() { 64 return null; 65 } 66 67 public void removeAttachment(String id) throws MessagingException { 68 } 69 70 public void setContent(Source content) throws MessagingException { 71 this.content = content; 72 } 73 74 private Source content; 75 76 public void setProperty(String name, Object value) { 77 } 78 79 public void setSecuritySubject(Subject subject) { 80 } 81 82 } 83 | Popular Tags |