@Test public void testWrapperHandleResponse() throws Exception { MessageContext messageContext = createMock(MessageContext.class); EndpointInterceptor interceptor = createMock(EndpointInterceptor.class); expect(interceptor.handleResponse(messageContext, null)).andReturn(true); replay(interceptor); EndpointInterceptorClientAdapter adapter = new EndpointInterceptorClientAdapter(interceptor); adapter.handleResponse(messageContext); verify(interceptor); }
public boolean handleResponse(MessageContext messageContext) throws WebServiceClientException { try { return interceptor.handleResponse(messageContext, null); } catch (Exception e) { throw new ServerSideInterceptorWebServiceClientException(e); } }
EndpointInterceptorClientAdapter implements ClientInterceptor { public boolean handleResponse(MessageContext messageContext) throws WebServiceClientException { try { return interceptor.handleResponse(messageContext, null); } catch (Exception e) { throw new ServerSideInterceptorWebServiceClientException(e); } } }
EndpointInterceptorClientAdapter implements ClientInterceptor { public boolean handleResponse(MessageContext messageContext) throws WebServiceClientException { try { return interceptor.handleResponse(messageContext, null); } catch (Exception e) { throw new ServerSideInterceptorWebServiceClientException(e); } } EndpointInterceptorClientAdapter(EndpointInterceptor interceptor); }
EndpointInterceptorClientAdapter implements ClientInterceptor { public boolean handleResponse(MessageContext messageContext) throws WebServiceClientException { try { return interceptor.handleResponse(messageContext, null); } catch (Exception e) { throw new ServerSideInterceptorWebServiceClientException(e); } } EndpointInterceptorClientAdapter(EndpointInterceptor interceptor); static ClientInterceptor[] wrapEndpointInterceptors(EndpointInterceptor[] endpointInterceptors); boolean handleFault(MessageContext messageContext); void afterCompletion(MessageContext messageContext, Exception ex); boolean handleRequest(MessageContext messageContext); boolean handleResponse(MessageContext messageContext); }
EndpointInterceptorClientAdapter implements ClientInterceptor { public boolean handleResponse(MessageContext messageContext) throws WebServiceClientException { try { return interceptor.handleResponse(messageContext, null); } catch (Exception e) { throw new ServerSideInterceptorWebServiceClientException(e); } } EndpointInterceptorClientAdapter(EndpointInterceptor interceptor); static ClientInterceptor[] wrapEndpointInterceptors(EndpointInterceptor[] endpointInterceptors); boolean handleFault(MessageContext messageContext); void afterCompletion(MessageContext messageContext, Exception ex); boolean handleRequest(MessageContext messageContext); boolean handleResponse(MessageContext messageContext);  }