private static String normalizedURL(String host,int port,String path){
  if (path == null || path.length() == 0) {
    path="/";
  }
  return "http://" + host + ":"+ port+ path;
}

private static String normalizedURL ( String host , int port , String path ) { if ( path == null || path . length ( ) == 0 ) { path = "/" ; } return "http://" + host + ":" + port + path ; }
create a url out of the given parameters , translate an empty / null path to ' / '
