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:
parent
489aa7a46a
commit
31ac6dd388
|
@ -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
|
||||
|
|
|
@ -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 </TD><TD>");
|
||||
buf.append(dfmt.format(new Date(item.lastModified())));
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
|
|
|
@ -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(...): </th>");
|
||||
pout.write("<td>"+Thread.currentThread().getContextClassLoader().getResource(res)+"</td>");
|
||||
pout.write("</tr><tr>\n");
|
||||
pout.write("<th align=\"right\">Thread.currentThread().getContextClassLoader().getResources(...): </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>");
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue