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());
}
}
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);
}
}
}
Aggregations