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.InOut; 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 43 public class MockInOut implements InOut { 44 45 public NormalizedMessage getInMessage() { 46 return null; 47 } 48 49 public NormalizedMessage getOutMessage() { 50 return out; 51 } 52 53 public void setInMessage(NormalizedMessage msg) throws MessagingException { 54 } 55 56 private NormalizedMessage out; 57 58 public void setOutMessage(NormalizedMessage msg) throws MessagingException { 59 out = msg; 60 } 61 62 public Fault createFault() throws MessagingException { 63 return null; 64 } 65 66 public NormalizedMessage createMessage() throws MessagingException { 67 return new MockNormalizedMessage(); 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 if ("OUT".equals(name)){ 92 return out; 93 } 94 return null; 95 } 96 97 public QName getOperation() { 98 return null; 99 } 100 101 public URI getPattern() { 102 return null; 103 } 104 105 public Object getProperty(String name) { 106 return null; 107 } 108 109 public Set getPropertyNames() { 110 return null; 111 } 112 113 public Role getRole() { 114 return null; 115 } 116 117 public QName getService() { 118 return null; 119 } 120 121 public ExchangeStatus getStatus() { 122 return ExchangeStatus.DONE; 123 } 124 125 public boolean isTransacted() { 126 return false; 127 } 128 129 public void setEndpoint(ServiceEndpoint endpoint) { 130 } 131 132 public void setError(Exception error) { 133 } 134 135 public void setFault(Fault fault) throws MessagingException { 136 } 137 138 public void setInterfaceName(QName interfaceName) { 139 } 140 141 public void setMessage(NormalizedMessage msg, String name) 142 throws MessagingException { 143 } 144 145 public void setOperation(QName name) { 146 } 147 148 public void setProperty(String name, Object obj) { 149 } 150 151 public void setService(QName service) { 152 } 153 154 public void setStatus(ExchangeStatus status) throws MessagingException { 155 } 156 157 } 158 | Popular Tags |