Search in sources :

Example 1 with HandlerTube

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;
}
Also used : ServerMessageHandlerTube(com.sun.xml.ws.handler.ServerMessageHandlerTube) ServerSOAPHandlerTube(com.sun.xml.ws.handler.ServerSOAPHandlerTube) HandlerTube(com.sun.xml.ws.handler.HandlerTube) ServerMessageHandlerTube(com.sun.xml.ws.handler.ServerMessageHandlerTube) ServerLogicalHandlerTube(com.sun.xml.ws.handler.ServerLogicalHandlerTube) ServerSOAPHandlerTube(com.sun.xml.ws.handler.ServerSOAPHandlerTube) SOAPBinding(jakarta.xml.ws.soap.SOAPBinding) ServerLogicalHandlerTube(com.sun.xml.ws.handler.ServerLogicalHandlerTube) NotNull(com.sun.istack.NotNull)

Example 2 with HandlerTube

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);
}
Also used : ClientMessageHandlerTube(com.sun.xml.ws.handler.ClientMessageHandlerTube) HandlerTube(com.sun.xml.ws.handler.HandlerTube) ClientSOAPHandlerTube(com.sun.xml.ws.handler.ClientSOAPHandlerTube) ClientLogicalHandlerTube(com.sun.xml.ws.handler.ClientLogicalHandlerTube) ClientLogicalHandlerTube(com.sun.xml.ws.handler.ClientLogicalHandlerTube) ClientMessageHandlerTube(com.sun.xml.ws.handler.ClientMessageHandlerTube) ClientSOAPHandlerTube(com.sun.xml.ws.handler.ClientSOAPHandlerTube) SOAPBinding(jakarta.xml.ws.soap.SOAPBinding)

Aggregations

HandlerTube (com.sun.xml.ws.handler.HandlerTube)2 SOAPBinding (jakarta.xml.ws.soap.SOAPBinding)2 NotNull (com.sun.istack.NotNull)1 ClientLogicalHandlerTube (com.sun.xml.ws.handler.ClientLogicalHandlerTube)1 ClientMessageHandlerTube (com.sun.xml.ws.handler.ClientMessageHandlerTube)1 ClientSOAPHandlerTube (com.sun.xml.ws.handler.ClientSOAPHandlerTube)1 ServerLogicalHandlerTube (com.sun.xml.ws.handler.ServerLogicalHandlerTube)1 ServerMessageHandlerTube (com.sun.xml.ws.handler.ServerMessageHandlerTube)1 ServerSOAPHandlerTube (com.sun.xml.ws.handler.ServerSOAPHandlerTube)1