01: package org.objectweb.celtix.bus.jaxws.servlet;
02:
03: import java.io.IOException;
04:
05: import javax.wsdl.WSDLException;
06:
07: import org.objectweb.celtix.bus.transports.http.HTTPTransportFactory;
08: import org.objectweb.celtix.transports.ServerTransport;
09: import org.objectweb.celtix.ws.addressing.EndpointReferenceType;
10:
11: public class ServletTransportFactory extends HTTPTransportFactory {
12: protected CeltixServlet servlet;
13:
14: public ServletTransportFactory(CeltixServlet serv) {
15: servlet = serv;
16: }
17:
18: public ServerTransport createServerTransport(
19: EndpointReferenceType address) throws WSDLException,
20: IOException {
21:
22: return new ServletServerTransport(bus, address, servlet);
23: }
24: }
|