added java 8 lambda code for getting the http host and port eliminating localhost:8080