Search in sources :

Example 6 with HTTPConduitConfigurer

use of org.apache.cxf.transport.http.HTTPConduitConfigurer in project cxf by apache.

the class AsyncHttpTransportFactory method getConduit.

@Override
public Conduit getConduit(EndpointInfo endpointInfo, EndpointReferenceType target, Bus bus) throws IOException {
    // need to updated the endpointInfo
    endpointInfo.setAddress(getAddress(endpointInfo));
    AsyncHTTPConduitFactory fact = bus.getExtension(AsyncHTTPConduitFactory.class);
    if (fact == null) {
        fact = factory;
    }
    HTTPConduit conduit = fact.createConduit(bus, endpointInfo, target);
    // Spring configure the conduit.
    String address = conduit.getAddress();
    if (address != null && address.indexOf('?') != -1) {
        address = address.substring(0, address.indexOf('?'));
    }
    HTTPConduitConfigurer c1 = bus.getExtension(HTTPConduitConfigurer.class);
    if (c1 != null) {
        c1.configure(conduit.getBeanName(), address, conduit);
    }
    configure(bus, conduit, conduit.getBeanName(), address);
    conduit.finalizeConfig();
    return conduit;
}
Also used : HTTPConduit(org.apache.cxf.transport.http.HTTPConduit) HTTPConduitConfigurer(org.apache.cxf.transport.http.HTTPConduitConfigurer)

Aggregations

HTTPConduit (org.apache.cxf.transport.http.HTTPConduit)6 HTTPConduitConfigurer (org.apache.cxf.transport.http.HTTPConduitConfigurer)6 InputStream (java.io.InputStream)2 KeyStore (java.security.KeyStore)2 TrustManagerFactory (javax.net.ssl.TrustManagerFactory)2 TLSClientParameters (org.apache.cxf.configuration.jsse.TLSClientParameters)2 URL (java.net.URL)1 KeyManagerFactory (javax.net.ssl.KeyManagerFactory)1 QName (javax.xml.namespace.QName)1 Service (javax.xml.ws.Service)1 BusFactory (org.apache.cxf.BusFactory)1 SpringBusFactory (org.apache.cxf.bus.spring.SpringBusFactory)1 Client (org.apache.cxf.endpoint.Client)1 AhcWebSocketConduit (org.apache.cxf.transport.websocket.ahc.AhcWebSocketConduit)1 DoubleItPortType (org.example.contract.doubleit.DoubleItPortType)1