Package org.codehaus.xfire.transport

Examples of org.codehaus.xfire.transport.Transport


    {
      logger.debug("Destroying Servlet");
        //Ensure all transports are closed
        for (Iterator iterator = xfire.getTransportManager().getTransports().iterator(); iterator.hasNext();)
        {
            Transport transport = (Transport) iterator.next();
            transport.dispose();
        }
        super.destroy();
    }
View Full Code Here


        xFire.getOutHandlers().addAll(getOutHandlers());
        xFire.getFaultHandlers().addAll(getFaultHandlers());
       
        for (Iterator itr = transports.iterator(); itr.hasNext();)
        {
            Transport t = (Transport) itr.next();
           
            xFire.getTransportManager().register(t);
        }
       
        for(Iterator iter = properties.keySet().iterator();iter.hasNext();){
View Full Code Here

        return Soap11.getInstance();
    }

    public javax.wsdl.Binding createBinding(WSDLBuilder builder, PortType portType)
    {
        Transport t = builder.getTransportManager().getTransport(getBindingId());
        if (!(t instanceof WSDL11Transport)) return null;
       
        Definition def = builder.getDefinition();
        javax.wsdl.Binding wbinding = def.createBinding();
View Full Code Here

        return port;
    }
   
    public Port createPort(WSDLBuilder builder, javax.wsdl.Binding wbinding)
    {
        Transport t = builder.getTransportManager().getTransport(getBindingId());
        if (!(t instanceof WSDL11Transport)) return null;
       
        WSDL11Transport transport = (WSDL11Transport) t;
       
        SOAPAddressImpl add = new SOAPAddressImpl();
View Full Code Here

        // Create a SOAP Http transport with all the servlet addons
        transport = new XFireServletTransport();
       
        transport.addFaultHandler(new FaultResponseCodeHandler());
       
        Transport oldSoap = getTransportManager().getTransport(SoapHttpTransport.SOAP11_HTTP_BINDING);
       
        if (oldSoap != null) getTransportManager().unregister(oldSoap);
       
        getTransportManager().register(transport);
    }
View Full Code Here

    }

    public void invoke(MessageContext context)
        throws Exception
    {
        Transport t = context.getInMessage().getChannel().getTransport();
        AbstractBinding binding = JAXWSHelper.getInstance().getBinding(t);
       
        PortInfo portInfo = new PortInfo(context.getBinding().getBindingId(), null, service.getServiceName());
      
        List<Handler> handlers = service.getHandlerResolver().getHandlerChain(portInfo);
View Full Code Here

            bindingId = SOAPBinding.SOAP11HTTP_BINDING;
        }
        else
        {
            TransportManager transportManager = JAXWSHelper.getInstance().getTransportManager();
            Transport t = transportManager.getTransportForUri(address);
            bindingId = t.getSupportedBindings()[0];
        }
       
        org.codehaus.xfire.jaxws.Endpoint endpoint =
            new org.codehaus.xfire.jaxws.Endpoint(bindingId, implementor);
        endpoint.publish(address);
View Full Code Here

    {
        createSoapBinding(SoapHttpTransport.SOAP11_HTTP_BINDING, SOAPBinding.SOAP11HTTP_BINDING);
        createSoapBinding(SoapHttpTransport.SOAP12_HTTP_BINDING, SOAPBinding.SOAP12HTTP_BINDING);
        createSoapBinding(LocalTransport.BINDING_ID, LocalTransport.BINDING_ID);
       
        Transport http = tManager.getTransport(HttpTransport.HTTP_BINDING);
        HTTPBinding binding = new HTTPBinding(http);
        bindings.put(HTTPBinding.HTTP_BINDING, binding);
        transport2Binding.put(http, binding);
       
        Map props = new HashMap();
View Full Code Here

        sourceService = new ObjectServiceFactory().create(SourceService.class, props);
    }
   
    public void createSoapBinding(String id, String jaxId)
    {
        Transport localSoap = tManager.getTransport(id);
        AbstractBinding binding = new SOAPBinding(localSoap);
        bindings.put(jaxId, binding);
        transport2Binding.put(localSoap, binding);
    }
View Full Code Here

    @SuppressWarnings("unchecked")
    @Override
    public <T> javax.xml.ws.Dispatch<T> createDispatch(QName port, Class<T> type, Mode serviceMode)
    {  
        Transport transport;
        String address;
       
        PortInfo portInfo = getPortInfo(port);
        if (portInfo != null)
        {
View Full Code Here

TOP

Related Classes of org.codehaus.xfire.transport.Transport

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.