@Test public void skipResponseHeaderProcessingIfNoTpicHeaderIsPresent() throws Exception { final SoapHeader soapHeader = mock(SoapHeader.class); when(((SoapMessage) messageContext.getResponse()).getSoapHeader()).thenReturn(soapHeader); when(soapHeader.examineHeaderElements(eq(SOAP_HEADER_QNAME))).thenReturn(Collections.<SoapHeaderElement>emptyList().iterator()); unit.handleResponse(messageContext); assertThat(backend.size(), is(0)); }
@Override public boolean handleResponse(MessageContext messageContext) { parseContextFromSoapHeader(messageContext.getResponse(), IncomingResponse); return true; }
TraceeClientInterceptor extends AbstractTraceeInterceptor implements ClientInterceptor { @Override public boolean handleResponse(MessageContext messageContext) { parseContextFromSoapHeader(messageContext.getResponse(), IncomingResponse); return true; } }
TraceeClientInterceptor extends AbstractTraceeInterceptor implements ClientInterceptor { @Override public boolean handleResponse(MessageContext messageContext) { parseContextFromSoapHeader(messageContext.getResponse(), IncomingResponse); return true; } TraceeClientInterceptor();  TraceeClientInterceptor(final String profile);  TraceeClientInterceptor(final TraceeBackend backend, final String profile); }
TraceeClientInterceptor extends AbstractTraceeInterceptor implements ClientInterceptor { @Override public boolean handleResponse(MessageContext messageContext) { parseContextFromSoapHeader(messageContext.getResponse(), IncomingResponse); return true; } TraceeClientInterceptor();  TraceeClientInterceptor(final String profile);  TraceeClientInterceptor(final TraceeBackend backend, final String profile); @Override boolean handleRequest(MessageContext messageContext); @Override boolean handleResponse(MessageContext messageContext); @Override boolean handleFault(MessageContext messageContext); @Override void afterCompletion(MessageContext messageContext, Exception ex); }
TraceeClientInterceptor extends AbstractTraceeInterceptor implements ClientInterceptor { @Override public boolean handleResponse(MessageContext messageContext) { parseContextFromSoapHeader(messageContext.getResponse(), IncomingResponse); return true; } TraceeClientInterceptor();  TraceeClientInterceptor(final String profile);  TraceeClientInterceptor(final TraceeBackend backend, final String profile); @Override boolean handleRequest(MessageContext messageContext); @Override boolean handleResponse(MessageContext messageContext); @Override boolean handleFault(MessageContext messageContext); @Override void afterCompletion(MessageContext messageContext, Exception ex);  }