1 package org.objectweb.celtix.geronimo.container; 2 3 import java.io.IOException ; 4 5 import javax.wsdl.WSDLException; 6 7 import org.objectweb.celtix.bus.transports.http.HTTPTransportFactory; 8 import org.objectweb.celtix.transports.ServerTransport; 9 import org.objectweb.celtix.ws.addressing.EndpointReferenceType; 10 11 public class GeronimoTransportFactory extends HTTPTransportFactory { 12 13 private ThreadLocal <CeltixWebServiceContainer> currentContainer 14 = new ThreadLocal <CeltixWebServiceContainer>(); 15 16 17 public CeltixWebServiceContainer getCurrentContainer() { 18 return currentContainer.get(); 19 } 20 21 public void setCurrentContainer(CeltixWebServiceContainer container) { 22 currentContainer.set(container); 23 } 24 25 26 public ServerTransport createServerTransport(EndpointReferenceType address) 27 throws WSDLException, IOException { 28 29 GeronimoServerTransport ret = new GeronimoServerTransport(getBus(), address); 30 getCurrentContainer().setServerTransport(ret); 31 return ret; 32 } 33 34 } 35 | Popular Tags |