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.InOnly; 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 MockInOnly implements InOnly { 44 45 private ExchangeStatus status= ExchangeStatus.ACTIVE; 46 private NormalizedMessage in; 47 48 public NormalizedMessage getInMessage() { 49 return in; 50 } 51 52 public void setInMessage(NormalizedMessage msg) throws MessagingException { 53 in = msg; 54 } 55 56 public Fault createFault() throws MessagingException { 57 return new MockFault(); 58 } 59 60 public NormalizedMessage createMessage() throws MessagingException { 61 return new MockNormalizedMessage(); 62 } 63 64 public ServiceEndpoint getEndpoint() { 65 return null; 66 } 67 68 public Exception getError() { 69 return null; 70 } 71 72 public String getExchangeId() { 73 return null; 74 } 75 76 public Fault getFault() { 77 return null; 78 } 79 80 public QName getInterfaceName() { 81 return null; 82 } 83 84 public NormalizedMessage getMessage(String name) { 85 return null; 86 } 87 88 public QName getOperation() { 89 return null; 90 } 91 92 public URI getPattern() { 93 return null; 94 } 95 96 public Object getProperty(String name) { 97 return null; 98 } 99 100 public Set getPropertyNames() { 101 return null; 102 } 103 104 public Role getRole() { 105 return null; 106 } 107 108 public QName getService() { 109 return null; 110 } 111 112 public ExchangeStatus getStatus() { 113 return status; 114 } 115 116 public boolean isTransacted() { 117 return false; 118 } 119 120 public void setEndpoint(ServiceEndpoint endpoint) { 121 } 122 123 public void setError(Exception error) { 124 } 125 126 public void setFault(Fault fault) throws MessagingException { 127 } 128 129 public void setInterfaceName(QName interfaceName) { 130 } 131 132 public void setMessage(NormalizedMessage msg, String name) 133 throws MessagingException { 134 } 135 136 public void setOperation(QName name) { 137 } 138 139 public void setProperty(String name, Object obj) { 140 } 141 142 public void setService(QName service) { 143 } 144 145 public void setStatus(ExchangeStatus status) throws MessagingException { 146 this.status= status; 147 } 148 149 } 150 | Popular Tags |