1 22 package org.objectweb.petals.binding.xquarebc.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 42 public class MockMessageExchange implements MessageExchange { 43 44 boolean fault = false; 45 46 boolean status = false; 47 48 private static final long serialVersionUID = 1L; 49 50 public void setFault(Fault fault) { 51 this.fault = true; 52 } 53 54 public void setMessage(NormalizedMessage msg, String name) { 55 } 56 57 public void setStatus(ExchangeStatus status) { 58 this.status = true; 59 } 60 61 public Fault createFault() throws MessagingException { 62 return new MockFault(); 63 } 64 65 public NormalizedMessage createMessage() throws MessagingException { 66 return null; 67 } 68 69 public ServiceEndpoint getEndpoint() { 70 return null; 71 } 72 73 public Exception getError() { 74 return null; 75 } 76 77 public String getExchangeId() { 78 return null; 79 } 80 81 public Fault getFault() { 82 return null; 83 } 84 85 public QName getInterfaceName() { 86 return null; 87 } 88 89 public NormalizedMessage getMessage(String name) { 90 return null; 91 } 92 93 public QName getOperation() { 94 return null; 95 } 96 97 public URI getPattern() { 98 return null; 99 } 100 101 public Object getProperty(String name) { 102 return null; 103 } 104 105 public Set getPropertyNames() { 106 return null; 107 } 108 109 public Role getRole() { 110 return null; 111 } 112 113 public QName getService() { 114 return null; 115 } 116 117 public ExchangeStatus getStatus() { 118 return null; 119 } 120 121 public boolean isTransacted() { 122 return false; 123 } 124 125 public boolean isFault() { 126 return fault; 127 } 128 129 public boolean isStatus() { 130 return status; 131 } 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 |