use of com.sun.xml.ws.handler.HandlerTube in project metro-jax-ws by eclipse-ee4j.
the class ServerTubeAssemblerContext method createHandlerTube.
/**
* Creates a {@link Tube} that invokes protocol and logical handlers.
*/
@NotNull
public Tube createHandlerTube(@NotNull Tube next) {
if (!binding.getHandlerChain().isEmpty()) {
HandlerTube cousin = new ServerLogicalHandlerTube(binding, seiModel, wsdlModel, next);
next = cousin;
if (binding instanceof SOAPBinding) {
// Add SOAPHandlerTube
next = cousin = new ServerSOAPHandlerTube(binding, next, cousin);
// Add MessageHandlerTube
next = new ServerMessageHandlerTube(seiModel, binding, next, cousin);
}
}
return next;
}
use of com.sun.xml.ws.handler.HandlerTube in project metro-jax-ws by eclipse-ee4j.
the class ClientTubeAssemblerContext method createHandlerTube.
/**
* Creates a {@link Tube} that invokes protocol and logical handlers.
*/
public Tube createHandlerTube(Tube next) {
HandlerTube cousinHandlerTube = null;
// XML/HTTP Binding can have only LogicalHandlerPipe
if (binding instanceof SOAPBinding) {
// Add MessageHandlerTube
HandlerTube messageHandlerTube = new ClientMessageHandlerTube(seiModel, binding, wsdlModel, next);
next = cousinHandlerTube = messageHandlerTube;
// Add SOAPHandlerTuber
HandlerTube soapHandlerTube = new ClientSOAPHandlerTube(binding, next, cousinHandlerTube);
next = cousinHandlerTube = soapHandlerTube;
}
return new ClientLogicalHandlerTube(binding, seiModel, next, cousinHandlerTube);
}
Aggregations