public HttpClientBuilder interceptor ( ClientHttpRequestInterceptor interceptor ) { if ( endpoint . getEndpointConfiguration ( ) . getClientInterceptors ( ) == null ) { endpoint . getEndpointConfiguration ( ) . setClientInterceptors ( new ArrayList < ClientHttpRequestInterceptor > ( ) ) ; } endpoint . getEndpointConfiguration ( ) . getClientInterceptors ( ) . add ( interceptor ) ; return this ; }
Sets a client single interceptor .