1 22 package org.objectweb.petals.demo.mortgage.gui.mock; 23 24 import javax.jbi.messaging.DeliveryChannel; 25 import javax.jbi.messaging.MessageExchange; 26 import javax.jbi.messaging.MessageExchangeFactory; 27 import javax.jbi.messaging.MessagingException; 28 import javax.jbi.servicedesc.ServiceEndpoint; 29 import javax.xml.namespace.QName ; 30 31 36 public class DeliveryChannelMock implements DeliveryChannel { 37 38 public MessageExchange accept() throws MessagingException { 39 return null; 40 } 41 42 public MessageExchange accept(long timeoutMS) throws MessagingException, 43 IllegalArgumentException { 44 return null; 45 } 46 47 public void close() throws MessagingException { 48 } 49 50 public MessageExchangeFactory createExchangeFactory() { 51 return null; 52 } 53 54 public MessageExchangeFactory createExchangeFactory(QName interfaceName) { 55 return new MessageExchangeFactoryMock(); 56 } 57 58 public MessageExchangeFactory createExchangeFactory(ServiceEndpoint endpoint) { 59 return null; 60 } 61 62 public MessageExchangeFactory createExchangeFactoryForService( 63 QName serviceName) { 64 return null; 65 } 66 67 public void send(MessageExchange exchange) throws MessagingException { 68 this.exchange = exchange; 69 } 70 71 private MessageExchange exchange; 72 73 public MessageExchange getExchange() { 74 return exchange; 75 } 76 77 public boolean sendSync(MessageExchange exchange) throws MessagingException { 78 return false; 79 } 80 81 public boolean sendSync(MessageExchange exchange, long timeoutMS) 82 throws MessagingException { 83 return false; 84 } 85 86 } 87 | Popular Tags |