01: package org.objectweb.celtix.bus.bindings.soap;
02:
03: import java.io.IOException;
04: import javax.wsdl.WSDLException;
05:
06: import org.objectweb.celtix.Bus;
07: import org.objectweb.celtix.bindings.BindingFactory;
08: import org.objectweb.celtix.bindings.ClientBinding;
09: import org.objectweb.celtix.bindings.ServerBinding;
10: import org.objectweb.celtix.bindings.ServerBindingEndpointCallback;
11: import org.objectweb.celtix.ws.addressing.EndpointReferenceType;
12:
13: public class SOAPBindingFactory implements BindingFactory {
14: private Bus bus;
15:
16: public SOAPBindingFactory() {
17: //Complete
18: }
19:
20: public void init(Bus b) {
21: bus = b;
22: }
23:
24: public ClientBinding createClientBinding(
25: EndpointReferenceType reference) throws WSDLException,
26: IOException {
27: return new SOAPClientBinding(bus, reference);
28: }
29:
30: public ServerBinding createServerBinding(
31: EndpointReferenceType reference,
32: ServerBindingEndpointCallback cbFactory)
33: throws WSDLException, IOException {
34: return new SOAPServerBinding(bus, reference, cbFactory);
35: }
36:
37: }
|