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.Fault; 28 import javax.jbi.messaging.MessagingException; 29 import javax.security.auth.Subject ; 30 import javax.xml.transform.Source ; 31 32 38 public class MockFault implements Fault { 39 40 public void addAttachment(String id, DataHandler content) 41 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 public Source getContent() { 54 return null; 55 } 56 57 public Object getProperty(String name) { 58 return null; 59 } 60 61 public Set getPropertyNames() { 62 return null; 63 } 64 65 public Subject getSecuritySubject() { 66 return null; 67 } 68 69 public void removeAttachment(String id) throws MessagingException { 70 71 } 72 73 public void setContent(Source content) throws MessagingException { 74 75 } 76 77 public void setProperty(String name, Object value) { 78 79 } 80 81 public void setSecuritySubject(Subject subject) { 82 83 } 84 85 } 86 | Popular Tags |