java-serverhost/src/main/java/com/redhat/training/example/javaserverhost/rest/ServerHostEndPoint.java | ●●●●● patch | view | raw | blame | history |
java-serverhost/src/main/java/com/redhat/training/example/javaserverhost/rest/ServerHostEndPoint.java
@@ -1,12 +1,10 @@ package com.redhat.training.example.javaserverhost.rest; import javax.ws.rs.Path; import javax.ws.rs.core.Response; import javax.ws.rs.GET; import javax.ws.rs.Produces; import java.net.InetAddress; @Path("/") public class ServerHostEndPoint { @@ -21,6 +19,8 @@ catch (Exception e) { e.printStackTrace(); } return Response.ok("I am running on server "+host+" Version 1.0 \n").build(); String msg = "I am running on server "+host+" Version 1.0 \n" return Response.ok(msg).build(); } }