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;
}

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 ; }
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 )
