348935 Close A tag in directory listing

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3412 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2011-06-22 05:49:12 +00:00
parent 489aa7a46a
commit 31ac6dd388
4 changed files with 13 additions and 5 deletions

View File

@ -11,6 +11,7 @@ jetty-7.4.3-SNAPSHOT
+ 349896 SCEP supports zero maxIdleTime
+ 349897 draft -09 websockets
+ 349997 MBeanContainer uses weak references
+ 348935 Close A tag in directory listing
+ JETTY-1342 Recreate selector in change task
jetty-7.4.2.v20110526

View File

@ -536,7 +536,7 @@ public abstract class Resource implements ResourceFactory
buf.append("\">");
buf.append(deTag(ls[i]));
buf.append(" ");
buf.append("</TD><TD ALIGN=right>");
buf.append("</A></TD><TD ALIGN=right>");
buf.append(item.length());
buf.append(" bytes&nbsp;</TD><TD>");
buf.append(dfmt.format(new Date(item.lastModified())));

View File

@ -316,10 +316,7 @@ public class WebAppClassLoader extends URLClassLoader
/* ------------------------------------------------------------ */
private List<URL> toList(Enumeration<URL> e)
{
List<URL> list = new ArrayList<URL>();
while (e!=null && e.hasMoreElements())
list.add(e.nextElement());
return list;
return Collections.list(e);
}
/* ------------------------------------------------------------ */

View File

@ -22,6 +22,9 @@ import java.io.PrintWriter;
import java.io.Reader;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
import java.net.URL;
import java.util.Collections;
import java.util.Collection;
import java.util.Date;
import java.util.Enumeration;
import java.util.Locale;
@ -688,6 +691,13 @@ public class Dump extends HttpServlet
pout.write("</tr><tr>\n");
pout.write("<th align=\"right\">Thread.currentThread().getContextClassLoader().getResource(...):&nbsp;</th>");
pout.write("<td>"+Thread.currentThread().getContextClassLoader().getResource(res)+"</td>");
pout.write("</tr><tr>\n");
pout.write("<th align=\"right\">Thread.currentThread().getContextClassLoader().getResources(...):&nbsp;</th>");
Enumeration<URL> urls = Thread.currentThread().getContextClassLoader().getResources(res);
if (urls==null)
pout.write("<td>null</td>");
else
pout.write("<td>"+Collections.list(urls)+"</td>");
}