diff src/org/eclipse/jetty/server/Request.java @ 987:af8742d31bca

remove Server._attributes
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 17 Oct 2016 04:59:15 -0600
parents d35b0a3a7a4a
children 13beba0c127f
line wrap: on
line diff
--- a/src/org/eclipse/jetty/server/Request.java	Mon Oct 17 04:44:53 2016 -0600
+++ b/src/org/eclipse/jetty/server/Request.java	Mon Oct 17 04:59:15 2016 -0600
@@ -255,34 +255,12 @@
 							
 							if (maxFormContentSize < 0)
 							{
-								Object obj = _connection.getConnector().server.getAttribute("org.eclipse.jetty.server.Request.maxFormContentSize");
-								if (obj == null)
-									maxFormContentSize = 200000;
-								else if (obj instanceof Number)
-								{                      
-									Number size = (Number)obj;
-									maxFormContentSize = size.intValue();
-								}
-								else if (obj instanceof String)
-								{
-									maxFormContentSize = Integer.valueOf((String)obj);
-								}
+								maxFormContentSize = 200000;
 							}
 							
 							if (maxFormKeys < 0)
 							{
-								Object obj = _connection.getConnector().server.getAttribute("org.eclipse.jetty.server.Request.maxFormKeys");
-								if (obj == null)
-									maxFormKeys = 1000;
-								else if (obj instanceof Number)
-								{
-									Number keys = (Number)obj;
-									maxFormKeys = keys.intValue();
-								}
-								else if (obj instanceof String)
-								{
-									maxFormKeys = Integer.valueOf((String)obj);
-								}
+								maxFormKeys = 1000;
 							}
 
 							if (content_length > maxFormContentSize && maxFormContentSize > 0)