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