static String buildOrigin(URI uri){
  return String.format("%s:%d",uri.getHost(),uri.getPort());
}

static String buildOrigin ( URI uri ) { return String . format ( "%s:%d" , uri . getHost ( ) , uri . getPort ( ) ) ; }
builds an identifier for the origin of a cookie .
