added method with the java http get