public void handleMessage(SoapMessage message) { if (binding.getHandlerChain().isEmpty()) { return; } if (getInvoker(message).getProtocolHandlers().isEmpty()) { return; } checkUnderstoodHeaders(message); if (getInvoker(message).isOutbound()) { //The SOAPMessage might be set from the outchain, in this case, //we need to clean it up and create a new SOAPMessage dedicated to fault. message.setContent(SOAPMessage.class, null); SAAJ_OUT.handleMessage(message); message.getInterceptorChain().add(ending); } }
SAAJ_OUT.handleMessage(message);
public void handleMessage(SoapMessage mc) throws Fault { if (mc.getContent(SOAPMessage.class) == null) { saajOut.handleMessage(mc); } // If a custom Id has been set, then change the Id for the internal interceptor as well, as otherwise // we can't add two WSS4JOutInterceptor instances to the interceptor chain. if (!WSS4JOutInterceptor.class.getName().equals(getId())) { Random random = new Random(); int randomInt = random.nextInt(); ending.setId(WSS4JOutInterceptorInternal.class.getName() + "_" + randomInt); } mc.getInterceptorChain().add(ending); } public void handleFault(SoapMessage message) {
public void handleMessage(SoapMessage mc) throws Fault { if (mc.getContent(SOAPMessage.class) == null) { saajOut.handleMessage(mc); } // If a custom Id has been set, then change the Id for the internal interceptor as well, as otherwise // we can't add two WSS4JOutInterceptor instances to the interceptor chain. if (!WSS4JOutInterceptor.class.getName().equals(getId())) { Random random = new Random(); int randomInt = random.nextInt(); ending.setId(WSS4JOutInterceptorInternal.class.getName() + "_" + randomInt); } mc.getInterceptorChain().add(ending); } public void handleFault(SoapMessage message) {
@Override public void handleMessage(SoapMessage message) throws Fault { if (message.getContent(SOAPMessage.class) == null) { SAAJOutInterceptor saajout = new SAAJOutInterceptor(); saajout.handleMessage(message); } authManager.validateResponse(message); }
public void handleMessage(SoapMessage mc) throws Fault { //must turn off mtom when using WS-Sec so binary is inlined so it can //be properly signed/encrypted/etc... if (!mtomEnabled) { mc.put(org.apache.cxf.message.Message.MTOM_ENABLED, false); } if (mc.getContent(SOAPMessage.class) == null) { saajOut.handleMessage(mc); } mc.getInterceptorChain().add(ending); } public void handleFault(SoapMessage message) {
@Override public void handleMessage(SoapMessage message) throws Fault { if (!chainAlreadyContainsSAAJ(message)) { SAAJ_OUT.handleMessage(message); } message.getInterceptorChain().add(new JaspiServerOutEndingInterceptor()); }
public void handleMessage(SoapMessage mc) throws Fault { //must turn off mtom when using WS-Sec so binary is inlined so it can //be properly signed/encrypted/etc... if (!mtomEnabled) { mc.put(org.apache.cxf.message.Message.MTOM_ENABLED, false); } if (mc.getContent(SOAPMessage.class) == null) { saajOut.handleMessage(mc); } mc.getInterceptorChain().add(ending); } public void handleFault(SoapMessage message) {
saajOut.handleMessage(smsg);
public void handleMessage(SoapMessage mc) throws Fault { boolean enableStax = MessageUtils.getContextualBoolean(mc, SecurityConstants.ENABLE_STREAMING_SECURITY); if (!enableStax) { if (mc.getContent(SOAPMessage.class) == null) { saajOut.handleMessage(mc); } mc.put(SECURITY_PROCESSED, Boolean.TRUE); mc.getInterceptorChain().add(ending); } } public void handleFault(SoapMessage message) {
public void handleMessage(SoapMessage mc) throws Fault { boolean enableStax = MessageUtils.getContextualBoolean(mc, SecurityConstants.ENABLE_STREAMING_SECURITY); if (!enableStax) { if (mc.getContent(SOAPMessage.class) == null) { saajOut.handleMessage(mc); } mc.put(SECURITY_PROCESSED, Boolean.TRUE); mc.getInterceptorChain().add(ending); } } public void handleFault(SoapMessage message) {
public void handleMessage(SoapMessage message) { if (binding.getHandlerChain().isEmpty()) { return; } if (getInvoker(message).getProtocolHandlers().isEmpty()) { return; } checkUnderstoodHeaders(message); if (getInvoker(message).isOutbound()) { //The SOAPMessage might be set from the outchain, in this case, //we need to clean it up and create a new SOAPMessage dedicated to fault. message.setContent(SOAPMessage.class, null); SAAJ_OUT.handleMessage(message); message.getInterceptorChain().add(ending); } }
SAAJ_OUT.handleMessage(message);