@Test public void doNotHAndleOutgoingIfBackendIsEmpty() throws SOAPException, JAXBException { final SOAPHeader header = message.getSOAPHeader(); unit.handleOutgoing(messageContext); verify(soapHeaderTransport, never()).renderSoapHeader(anyMapOf(String.class, String.class), eq(header)); }
protected final void handleOutgoing(SOAPMessageContext context) { final SOAPMessage msg = context.getMessage(); try { if (msg != null && !traceeBackend.isEmpty() && traceeBackend.getConfiguration().shouldProcessContext(OutgoingResponse)) { final SOAPHeader header = getOrCreateHeader(msg); final Map<String, String> filteredContext = traceeBackend.getConfiguration().filterDeniedParams(traceeBackend.copyToMap(), OutgoingResponse); transportSerialization.renderSoapHeader(filteredContext, header); msg.saveChanges(); context.setMessage(msg); } } catch (final SOAPException e) { logger.error("TraceeServerHandler : Exception occurred during processing of outbound message."); logger.debug("Detailed: TraceeServerHandler : Exception occurred during processing of outbound message: {}", e.getMessage(), e); } finally { traceeBackend.clear(); } }
TraceeServerHandler extends AbstractTraceeHandler { protected final void handleOutgoing(SOAPMessageContext context) { final SOAPMessage msg = context.getMessage(); try { if (msg != null && !traceeBackend.isEmpty() && traceeBackend.getConfiguration().shouldProcessContext(OutgoingResponse)) { final SOAPHeader header = getOrCreateHeader(msg); final Map<String, String> filteredContext = traceeBackend.getConfiguration().filterDeniedParams(traceeBackend.copyToMap(), OutgoingResponse); transportSerialization.renderSoapHeader(filteredContext, header); msg.saveChanges(); context.setMessage(msg); } } catch (final SOAPException e) { logger.error("TraceeServerHandler : Exception occurred during processing of outbound message."); logger.debug("Detailed: TraceeServerHandler : Exception occurred during processing of outbound message: {}", e.getMessage(), e); } finally { traceeBackend.clear(); } } }
TraceeServerHandler extends AbstractTraceeHandler { protected final void handleOutgoing(SOAPMessageContext context) { final SOAPMessage msg = context.getMessage(); try { if (msg != null && !traceeBackend.isEmpty() && traceeBackend.getConfiguration().shouldProcessContext(OutgoingResponse)) { final SOAPHeader header = getOrCreateHeader(msg); final Map<String, String> filteredContext = traceeBackend.getConfiguration().filterDeniedParams(traceeBackend.copyToMap(), OutgoingResponse); transportSerialization.renderSoapHeader(filteredContext, header); msg.saveChanges(); context.setMessage(msg); } } catch (final SOAPException e) { logger.error("TraceeServerHandler : Exception occurred during processing of outbound message."); logger.debug("Detailed: TraceeServerHandler : Exception occurred during processing of outbound message: {}", e.getMessage(), e); } finally { traceeBackend.clear(); } } TraceeServerHandler();  TraceeServerHandler(TraceeBackend traceeBackend, SoapHeaderTransport soapHeaderTransport); }
TraceeServerHandler extends AbstractTraceeHandler { protected final void handleOutgoing(SOAPMessageContext context) { final SOAPMessage msg = context.getMessage(); try { if (msg != null && !traceeBackend.isEmpty() && traceeBackend.getConfiguration().shouldProcessContext(OutgoingResponse)) { final SOAPHeader header = getOrCreateHeader(msg); final Map<String, String> filteredContext = traceeBackend.getConfiguration().filterDeniedParams(traceeBackend.copyToMap(), OutgoingResponse); transportSerialization.renderSoapHeader(filteredContext, header); msg.saveChanges(); context.setMessage(msg); } } catch (final SOAPException e) { logger.error("TraceeServerHandler : Exception occurred during processing of outbound message."); logger.debug("Detailed: TraceeServerHandler : Exception occurred during processing of outbound message: {}", e.getMessage(), e); } finally { traceeBackend.clear(); } } TraceeServerHandler();  TraceeServerHandler(TraceeBackend traceeBackend, SoapHeaderTransport soapHeaderTransport); @Override boolean handleFault(SOAPMessageContext context); }
TraceeServerHandler extends AbstractTraceeHandler { protected final void handleOutgoing(SOAPMessageContext context) { final SOAPMessage msg = context.getMessage(); try { if (msg != null && !traceeBackend.isEmpty() && traceeBackend.getConfiguration().shouldProcessContext(OutgoingResponse)) { final SOAPHeader header = getOrCreateHeader(msg); final Map<String, String> filteredContext = traceeBackend.getConfiguration().filterDeniedParams(traceeBackend.copyToMap(), OutgoingResponse); transportSerialization.renderSoapHeader(filteredContext, header); msg.saveChanges(); context.setMessage(msg); } } catch (final SOAPException e) { logger.error("TraceeServerHandler : Exception occurred during processing of outbound message."); logger.debug("Detailed: TraceeServerHandler : Exception occurred during processing of outbound message: {}", e.getMessage(), e); } finally { traceeBackend.clear(); } } TraceeServerHandler();  TraceeServerHandler(TraceeBackend traceeBackend, SoapHeaderTransport soapHeaderTransport); @Override boolean handleFault(SOAPMessageContext context);  }