diff src/org/eclipse/jetty/http/HttpGenerator.java @ 990:83cc6e05a58f

remove special attribute handling
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 17 Oct 2016 05:50:47 -0600
parents 23ec25435b8c
children f126d30e04a4
line wrap: on
line diff
--- a/src/org/eclipse/jetty/http/HttpGenerator.java	Mon Oct 17 05:39:54 2016 -0600
+++ b/src/org/eclipse/jetty/http/HttpGenerator.java	Mon Oct 17 05:50:47 2016 -0600
@@ -216,28 +216,6 @@
 	}
 
 	/* ------------------------------------------------------------ */
-	/**
-	 * send complete response.
-	 *
-	 * @param response
-	 */
-	public void sendResponse(Buffer response) throws IOException
-	{
-		if (_noContent || _state!=STATE_HEADER || _content!=null && _content.length()>0 || _bufferChunked || _head )
-			throw new IllegalStateException();
-
-		_last = true;
-
-		_content = response;
-		_bypass = true;
-		_state = STATE_FLUSHING;
-
-		// TODO this is not exactly right, but should do.
-		_contentLength =_contentWritten = response.length();
-
-	}
-
-	/* ------------------------------------------------------------ */
 	/** Prepare buffer for unchecked writes.
 	 * Prepare the generator buffer to receive unchecked writes
 	 * @return the available space in the buffer.