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