1 package org.objectweb.celtix.bus.bindings; 2 3 import java.io.IOException ; 4 5 import javax.wsdl.WSDLException; 6 7 import org.objectweb.celtix.Bus; 8 import org.objectweb.celtix.bindings.ClientBinding; 9 import org.objectweb.celtix.transports.ClientTransport; 10 import org.objectweb.celtix.transports.ServerTransport; 11 import org.objectweb.celtix.transports.TransportFactory; 12 import org.objectweb.celtix.ws.addressing.EndpointReferenceType; 13 14 class TestTransportFactory implements TransportFactory { 15 16 public ClientTransport createClientTransport(EndpointReferenceType address, 17 ClientBinding binding) 18 throws WSDLException, IOException { 19 return new TestClientTransport(); 20 } 21 22 public ServerTransport createServerTransport(EndpointReferenceType address) throws WSDLException, 23 IOException { 24 return new TestServerTransport(); 25 } 26 27 public ServerTransport createTransientServerTransport(EndpointReferenceType address) 28 throws WSDLException, IOException { 29 return null; 30 } 31 32 public void init(Bus b) { 33 } 34 35 public void shutdown() { 36 } 38 } 39 | Popular Tags |