Search in sources :

Example 1 with SOAPHandler

use of jakarta.xml.ws.handler.soap.SOAPHandler in project metro-jax-ws by eclipse-ee4j.

the class ServerSOAPHandlerTube method setUpHandlersOnce.

private void setUpHandlersOnce() {
    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());
    }
}
Also used : BindingImpl(com.sun.xml.ws.binding.BindingImpl) HandlerConfiguration(com.sun.xml.ws.client.HandlerConfiguration) SOAPHandler(jakarta.xml.ws.handler.soap.SOAPHandler)

Example 2 with SOAPHandler

use of jakarta.xml.ws.handler.soap.SOAPHandler 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)

Aggregations

BindingImpl (com.sun.xml.ws.binding.BindingImpl)2 HandlerConfiguration (com.sun.xml.ws.client.HandlerConfiguration)2 SOAPHandler (jakarta.xml.ws.handler.soap.SOAPHandler)2