private URI addAuthInterceptorIfRequired ( URI uri ) { String uriProtocol = uri . getScheme ( ) ; String uriHost = uri . getHost ( ) ; String uriPath = uri . getRawPath ( ) ; int uriPort = getDefaultPort ( uri ) ; setUserInfo ( uri ) ; setAuthInterceptor ( uriHost , uriPath , uriProtocol , uriPort ) ; return scrubUri ( uri , uriHost , uriPath , uriProtocol , uriPort ) ; }
- else add cookie interceptor if needed