1 22 package org.objectweb.petals.engine.csv.Mock; 23 24 import java.net.URI ; 25 import java.util.Set ; 26 27 import javax.jbi.messaging.ExchangeStatus; 28 import javax.jbi.messaging.Fault; 29 import javax.jbi.messaging.MessageExchange; 30 import javax.jbi.messaging.MessagingException; 31 import javax.jbi.messaging.NormalizedMessage; 32 import javax.jbi.servicedesc.ServiceEndpoint; 33 import javax.xml.namespace.QName ; 34 35 36 43 public class MockMessageExchange implements MessageExchange { 44 45 boolean fault=false; 46 boolean status=false; 47 48 49 private static final long serialVersionUID = 1L; 50 51 public void setFault(Fault fault) { 52 this.fault = true; 53 } 54 55 public void setMessage(NormalizedMessage msg, String name) { 56 } 57 58 public void setStatus(ExchangeStatus status) { 59 this.status = true; 60 } 61 62 public Fault createFault() throws MessagingException { 63 return new MockFault(); 64 } 65 66 public NormalizedMessage createMessage() throws MessagingException { 67 return null; 68 } 69 70 public ServiceEndpoint getEndpoint() { 71 return null; 72 } 73 74 public Exception getError() { 75 return null; 76 } 77 78 public String getExchangeId() { 79 return null; 80 } 81 82 public Fault getFault() { 83 return null; 84 } 85 86 public QName getInterfaceName() { 87 return null; 88 } 89 90 public NormalizedMessage getMessage(String name) { 91 return null; 92 } 93 94 public QName getOperation() { 95 return null; 96 } 97 98 public URI getPattern() { 99 return null; 100 } 101 102 public Object getProperty(String name) { 103 return null; 104 } 105 106 public Set getPropertyNames() { 107 return null; 108 } 109 110 public Role getRole() { 111 return null; 112 } 113 114 public QName getService() { 115 return null; 116 } 117 118 public ExchangeStatus getStatus() { 119 return null; 120 } 121 122 public boolean isTransacted() { 123 return false; 124 } 125 126 public boolean isFault() { 127 return fault; 128 } 129 130 public boolean isStatus() { 131 return status; 132 } 133 public void setEndpoint(ServiceEndpoint endpoint) { 134 135 } 136 137 public void setError(Exception error) { 138 139 } 140 141 public void setInterfaceName(QName interfaceName) { 142 143 } 144 145 public void setOperation(QName name) { 146 147 } 148 149 public void setProperty(String name, Object obj) { 150 151 } 152 153 public void setService(QName service) { 154 155 } 156 157 } 158 | Popular Tags |