question: private static URI cookieUri ( URI uri , HttpCookie cookie ) { URI cookieUri = uri ; if ( cookie . getDomain ( ) != null ) { String domain = cookie . getDomain ( ) ; if ( domain . charAt ( 0 ) == '.' ) { domain = domain . substring ( 1 ) ; } try { cookieUri = new URI ( uri . getScheme ( ) == null ? "http" : uri . getScheme ( ) , domain , cookie . getPath ( ) == null ? "/" : cookie . getPath ( ) , null ) ; } catch ( URISyntaxException e ) { Log . w ( TAG , e ) ; } } return cookieUri ; }
target:  Get the real URI from the cookie "domain" and "path" attributes, if they are not set then uses the URI provided (coming from the response)