improved README.txt

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1839 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2010-05-22 08:01:18 +00:00
parent 4863e85754
commit 71a5df65f0
5 changed files with 27 additions and 15 deletions

View File

@ -43,20 +43,21 @@ To run with the default options:
java -jar start.jar
To run with specific configuration file(s)
java -jar start.jar etc/jetty.xml
To see the available options
To see the available options and the default arguments
provided by the start.ini file:
java -jar start.jar --help
To run with JSP support
To run with add configuration file(s), eg SSL
java -jar start.jar etc/jetty-ssl.xml
To run without the args from start.ini
java -jar start.jar --ini OPTIONS=Server,websocket etc/jetty.xml etc/jetty-deploy.xml etc/jetty-ssl.xml
To run with JNDI support
java -jar start.jar OPTIONS=Server,jsp
To run with JMX support
java -jar start.jar OPTIONS=Server,jmx etc/jetty-jmx.xml etc/jetty.xml

View File

@ -31,7 +31,6 @@ import org.eclipse.jetty.server.handler.RequestLogHandler;
import org.eclipse.jetty.server.handler.StatisticsHandler;
import org.eclipse.jetty.server.nio.SelectChannelConnector;
import org.eclipse.jetty.server.ssl.SslSelectChannelConnector;
import org.eclipse.jetty.server.ssl.SslSocketConnector;
import org.eclipse.jetty.util.log.Log;
import org.eclipse.jetty.util.thread.QueuedThreadPool;

View File

@ -95,6 +95,9 @@ public class MultiPartFilter implements Filter
return;
}
System.err.println("Content-Length:"+((HttpServletRequest)request).getHeader("Content-Length"));
System.err.println("getContentLength:"+((HttpServletRequest)request).getContentLength());
BufferedInputStream in = new BufferedInputStream(request.getInputStream());
String content_type=srequest.getContentType();

View File

@ -92,7 +92,7 @@ public class Main
boolean ini=false;
for (String arg : args)
{
if (arg.startsWith("--ini="))
if (arg.startsWith("--ini=")||arg.equals("--ini"))
{
ini=true;
if (arg.length()>6)

View File

@ -13,6 +13,7 @@
package com.acme;
import java.io.BufferedWriter;
import java.io.File;
import java.io.IOException;
import java.io.OutputStream;
import java.io.OutputStreamWriter;
@ -20,6 +21,7 @@ import java.io.PrintWriter;
import java.io.Reader;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
import java.util.Date;
import java.util.Enumeration;
import java.util.Locale;
@ -552,7 +554,6 @@ public class Dump extends HttpServlet
pout.write("</pre></td>");
}
pout.write("</tr><tr>\n");
pout.write("<th align=\"left\" colspan=\"2\"><big><br/>Request Attributes:</big></th>");
Enumeration a= request.getAttributeNames();
@ -561,8 +562,16 @@ public class Dump extends HttpServlet
name= (String)a.nextElement();
pout.write("</tr><tr>\n");
pout.write("<th align=\"right\" valign=\"top\">"+name.replace("."," .")+":&nbsp;</th>");
pout.write("<td>"+"<pre>" + toString(request.getAttribute(name)) + "</pre>"+"</td>");
}
Object value=request.getAttribute(name);
if (value instanceof File)
{
File file = (File)value;
pout.write("<td>"+"<pre>" + file.getName()+" ("+file.length()+" "+new Date(file.lastModified())+ ")</pre>"+"</td>");
}
else
pout.write("<td>"+"<pre>" + toString(request.getAttribute(name)) + "</pre>"+"</td>");
}
request.setAttribute("org.eclipse.jetty.servlet.MultiPartFilter.files",null);
pout.write("</tr><tr>\n");