@Test public void skipIncomingHeaderProcessingIfNoTpicHeaderIsPresentAndGenerateRequestId() throws Exception { final SoapHeader soapHeader = mock(SoapHeader.class); when(((SoapMessage) messageContext.getRequest()).getSoapHeader()).thenReturn(soapHeader); when(soapHeader.examineHeaderElements(eq(SOAP_HEADER_QNAME))).thenReturn(Collections.<SoapHeaderElement>emptyList().iterator()); unit.handleRequest(messageContext, new Object()); assertThat(backend.copyToMap(), hasKey(INVOCATION_ID_KEY)); assertThat(backend.size(), is(1)); }
@Override public boolean handleRequest(MessageContext messageContext, Object o) { parseContextFromSoapHeader(messageContext.getRequest(), IncomingRequest); Utilities.generateInvocationIdIfNecessary(backend); return true; }
TraceeEndpointInterceptor extends AbstractTraceeInterceptor implements EndpointInterceptor { @Override public boolean handleRequest(MessageContext messageContext, Object o) { parseContextFromSoapHeader(messageContext.getRequest(), IncomingRequest); Utilities.generateInvocationIdIfNecessary(backend); return true; } }
TraceeEndpointInterceptor extends AbstractTraceeInterceptor implements EndpointInterceptor { @Override public boolean handleRequest(MessageContext messageContext, Object o) { parseContextFromSoapHeader(messageContext.getRequest(), IncomingRequest); Utilities.generateInvocationIdIfNecessary(backend); return true; } TraceeEndpointInterceptor();  TraceeEndpointInterceptor(final String profile);  TraceeEndpointInterceptor(final TraceeBackend backend, final String profile); }
TraceeEndpointInterceptor extends AbstractTraceeInterceptor implements EndpointInterceptor { @Override public boolean handleRequest(MessageContext messageContext, Object o) { parseContextFromSoapHeader(messageContext.getRequest(), IncomingRequest); Utilities.generateInvocationIdIfNecessary(backend); return true; } TraceeEndpointInterceptor();  TraceeEndpointInterceptor(final String profile);  TraceeEndpointInterceptor(final TraceeBackend backend, final String profile); @Override boolean handleRequest(MessageContext messageContext, Object o); @Override boolean handleResponse(MessageContext messageContext, Object o); @Override boolean handleFault(MessageContext messageContext, Object o); @Override void afterCompletion(MessageContext messageContext, Object o, Exception e); }
TraceeEndpointInterceptor extends AbstractTraceeInterceptor implements EndpointInterceptor { @Override public boolean handleRequest(MessageContext messageContext, Object o) { parseContextFromSoapHeader(messageContext.getRequest(), IncomingRequest); Utilities.generateInvocationIdIfNecessary(backend); return true; } TraceeEndpointInterceptor();  TraceeEndpointInterceptor(final String profile);  TraceeEndpointInterceptor(final TraceeBackend backend, final String profile); @Override boolean handleRequest(MessageContext messageContext, Object o); @Override boolean handleResponse(MessageContext messageContext, Object o); @Override boolean handleFault(MessageContext messageContext, Object o); @Override void afterCompletion(MessageContext messageContext, Object o, Exception e);  }