01: package org.objectweb.celtix.bus.bindings;
02:
03: import java.io.IOException;
04:
05: import javax.wsdl.WSDLException;
06:
07: import org.objectweb.celtix.Bus;
08: import org.objectweb.celtix.bindings.ClientBinding;
09: 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(
17: EndpointReferenceType address, ClientBinding binding)
18: throws WSDLException, IOException {
19: return new TestClientTransport();
20: }
21:
22: public ServerTransport createServerTransport(
23: EndpointReferenceType address) throws WSDLException,
24: IOException {
25: return new TestServerTransport();
26: }
27:
28: public ServerTransport createTransientServerTransport(
29: EndpointReferenceType address) throws WSDLException,
30: IOException {
31: return null;
32: }
33:
34: public void init(Bus b) {
35: }
36:
37: public void shutdown() {
38: //do nothing
39: }
40: }
|