Java Code Examples for org.apache.cxf.transport.http.HTTPConduit#getAddress()
The following examples show how to use
org.apache.cxf.transport.http.HTTPConduit#getAddress() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AsyncHttpTransportFactory.java From cxf with Apache License 2.0 | 6 votes |
@Override public Conduit getConduit(EndpointInfo endpointInfo, EndpointReferenceType target, Bus bus) throws IOException { HTTPConduit conduit = null; // need to updated the endpointInfo endpointInfo.setAddress(getAddress(endpointInfo)); conduit = factory.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; }
Example 2
Source File: WebSocketTransportFactory.java From cxf with Apache License 2.0 | 6 votes |
/** * {@inheritDoc} */ public Conduit getConduit(EndpointInfo endpointInfo, EndpointReferenceType target, Bus bus) throws IOException { HTTPConduit conduit = new AhcWebSocketConduit(bus, endpointInfo, target); 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; }
Example 3
Source File: NettyHttpTransportFactory.java From cxf with Apache License 2.0 | 6 votes |
@Override public Conduit getConduit(EndpointInfo endpointInfo, EndpointReferenceType target, Bus bus) throws IOException { HTTPConduit conduit = null; // need to updated the endpointInfo endpointInfo.setAddress(getAddress(endpointInfo)); conduit = factory.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; }