Factory for transport tubes that enables transport pluggability.
At runtime, on the client side, JAX-WS (more specifically the default
TubelineAssembler of JAX-WS client runtime) relies on this factory to create a suitable transport
Tube that can handle the given
EndpointAddress endpoint address .
JAX-WS extensions that provide additional transport support can
extend this class and implement the
TransportTubeFactory.doCreate method.
They are expected to check the scheme of the endpoint address
(and possibly some other settings from bindings), and create
their transport tube implementations accordingly.
For example,
class MyTransportTubeFactoryImpl {
Tube doCreate(...) {
String scheme = address.getURI().getScheme();
if(scheme.equals("foo"))
return new MyTransport(...);
else
return null;
}
}
TransportTubeFactory look-up follows the standard service
discovery mechanism, so you need
META-INF/services/com.sun.xml.ws.api.pipe.TransportTubeFactory .
author: Jitendra Kotamraju See Also: StandaloneTubeAssembler |