diff src/org/eclipse/jetty/server/handler/DefaultHandler.java @ 991:688c39c50ee3

simplify ContextHandler
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 18 Oct 2016 00:22:46 -0600
parents 8e9db0bbf4f9
children 32d4b569567c
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/handler/DefaultHandler.java	Mon Oct 17 05:50:47 2016 -0600
+++ b/src/org/eclipse/jetty/server/handler/DefaultHandler.java	Tue Oct 18 00:22:46 2016 -0600
@@ -98,15 +98,11 @@
 				if (context.isRunning())
 				{
 					writer.write("<li><a href=\"");
-					if (context.getVirtualHosts()!=null && context.getVirtualHosts().length>0)
-						writer.write("http://"+context.getVirtualHosts()[0]+":"+request.getLocalPort());
 					writer.write(context.getContextPath());
 					if (context.getContextPath().length()>1 && context.getContextPath().endsWith("/"))
 						writer.write("/");
 					writer.write("\">");
 					writer.write(context.getContextPath());
-					if (context.getVirtualHosts()!=null && context.getVirtualHosts().length>0)
-						writer.write("&nbsp;@&nbsp;"+context.getVirtualHosts()[0]+":"+request.getLocalPort());
 					writer.write("&nbsp;--->&nbsp;");
 					writer.write(context.toString());
 					writer.write("</a></li>\n");
@@ -115,8 +111,6 @@
 				{
 					writer.write("<li>");
 					writer.write(context.getContextPath());
-					if (context.getVirtualHosts()!=null && context.getVirtualHosts().length>0)
-						writer.write("&nbsp;@&nbsp;"+context.getVirtualHosts()[0]+":"+request.getLocalPort());
 					writer.write("&nbsp;--->&nbsp;");
 					writer.write(context.toString());
 					if (context.isFailed())