diff src/org/eclipse/jetty/http/HttpParser.java @ 1036:b87f97f6418a

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 03 Nov 2016 21:42:41 -0600
parents 563458c4dc93
children 3c4c7cc7904f
line wrap: on
line diff
--- a/src/org/eclipse/jetty/http/HttpParser.java	Thu Nov 03 21:09:57 2016 -0600
+++ b/src/org/eclipse/jetty/http/HttpParser.java	Thu Nov 03 21:42:41 2016 -0600
@@ -22,8 +22,6 @@
 
 import org.eclipse.jetty.io.Buffer;
 import org.eclipse.jetty.io.BufferUtil;
-import org.eclipse.jetty.io.Buffers;
-import org.eclipse.jetty.io.ByteArrayBuffer;
 import org.eclipse.jetty.io.EndPoint;
 import org.eclipse.jetty.io.EofException;
 import org.eclipse.jetty.io.View;
@@ -211,7 +209,7 @@
 							Buffer chunk = _buffer.get(_buffer.length());
 							_contentPosition += chunk.length();
 							_contentView.update(chunk);
-							_handler.content(chunk); // May recurse here
+							_handler.content(); // May recurse here
 						}
 					}
 
@@ -758,7 +756,7 @@
 						chunk=_buffer.get(_buffer.length());
 						_contentPosition += chunk.length();
 						_contentView.update(chunk);
-						_handler.content(chunk); // May recurse here
+						_handler.content(); // May recurse here
 						// TODO adjust the _buffer to keep unconsumed content
 						return 1;
 
@@ -782,7 +780,7 @@
 						chunk=_buffer.get(length);
 						_contentPosition += chunk.length();
 						_contentView.update(chunk);
-						_handler.content(chunk); // May recurse here
+						_handler.content(); // May recurse here
 
 						if(_contentPosition == _contentLength)
 						{
@@ -874,7 +872,7 @@
 						_contentPosition += chunk.length();
 						_chunkPosition += chunk.length();
 						_contentView.update(chunk);
-						_handler.content(chunk); // May recurse here
+						_handler.content(); // May recurse here
 						// TODO adjust the _buffer to keep unconsumed content
 						return 1;
 					}
@@ -893,7 +891,7 @@
 							while (_buffer.length()>0)
 								if (!Character.isWhitespace(_buffer.get()))
 								{
-									_state=STATE_END;
+									_state = STATE_END;
 									_endp.close();
 									_buffer.clear();
 								}
@@ -1039,7 +1037,7 @@
 
 	public interface EventHandler
 	{
-		public abstract void content(Buffer ref) throws IOException;
+		public abstract void content() throws IOException;
 
 		public void headerComplete() throws IOException;