Search in sources :

Example 6 with HandlerConfiguration

use of com.sun.xml.ws.client.HandlerConfiguration in project metro-jax-ws by eclipse-ee4j.

the class ClientSOAPHandlerTube method setUpProcessor.

void setUpProcessor() {
    if (handlers == null) {
        // Take a snapshot, User may change chain after invocation, Same chain
        // should be used for the entire MEP
        handlers = new ArrayList<>();
        HandlerConfiguration handlerConfig = ((BindingImpl) getBinding()).getHandlerConfig();
        List<SOAPHandler> soapSnapShot = handlerConfig.getSoapHandlers();
        if (!soapSnapShot.isEmpty()) {
            handlers.addAll(soapSnapShot);
            roles = new HashSet<>();
            roles.addAll(handlerConfig.getRoles());
            processor = new SOAPHandlerProcessor(true, this, getBinding(), handlers);
        }
    }
}
Also used : BindingImpl(com.sun.xml.ws.binding.BindingImpl) HandlerConfiguration(com.sun.xml.ws.client.HandlerConfiguration) SOAPHandler(jakarta.xml.ws.handler.soap.SOAPHandler)

Example 7 with HandlerConfiguration

use of com.sun.xml.ws.client.HandlerConfiguration in project metro-jax-ws by eclipse-ee4j.

the class HandlerTube method setUpProcessorInternal.

private void setUpProcessorInternal() {
    HandlerConfiguration hc = ((BindingImpl) binding).getHandlerConfig();
    if (hc != this.hc)
        resetProcessor();
    this.hc = hc;
    setUpProcessor();
}
Also used : BindingImpl(com.sun.xml.ws.binding.BindingImpl) HandlerConfiguration(com.sun.xml.ws.client.HandlerConfiguration)

Aggregations

HandlerConfiguration (com.sun.xml.ws.client.HandlerConfiguration)7 BindingImpl (com.sun.xml.ws.binding.BindingImpl)5 MessageHandler (com.sun.xml.ws.api.handler.MessageHandler)2 SOAPHandler (jakarta.xml.ws.handler.soap.SOAPHandler)2 NotNull (com.sun.istack.NotNull)1 WebServiceException (jakarta.xml.ws.WebServiceException)1 QName (javax.xml.namespace.QName)1