changeset 979:c8cd3e96db5f

remove Parser
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 16 Oct 2016 18:01:39 -0600
parents bdb6eb0fbf93
children bd26bd9320e2
files src/org/eclipse/jetty/http/HttpParser.java src/org/eclipse/jetty/http/Parser.java src/org/eclipse/jetty/server/AbstractHttpConnection.java src/org/eclipse/jetty/server/BlockingHttpConnection.java
diffstat 4 files changed, 1 insertions(+), 50 deletions(-) [+]
line wrap: on
line diff
--- a/src/org/eclipse/jetty/http/HttpParser.java	Sun Oct 16 14:53:43 2016 -0600
+++ b/src/org/eclipse/jetty/http/HttpParser.java	Sun Oct 16 18:01:39 2016 -0600
@@ -32,7 +32,7 @@
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
-public class HttpParser implements Parser
+public final class HttpParser
 {
 	private static final Logger LOG = LoggerFactory.getLogger(HttpParser.class);
 
--- a/src/org/eclipse/jetty/http/Parser.java	Sun Oct 16 14:53:43 2016 -0600
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,47 +0,0 @@
-//
-//  ========================================================================
-//  Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd.
-//  ------------------------------------------------------------------------
-//  All rights reserved. This program and the accompanying materials
-//  are made available under the terms of the Eclipse Public License v1.0
-//  and Apache License v2.0 which accompanies this distribution.
-//
-//      The Eclipse Public License is available at
-//      http://www.eclipse.org/legal/epl-v10.html
-//
-//      The Apache License v2.0 is available at
-//      http://www.opensource.org/licenses/apache2.0.php
-//
-//  You may elect to redistribute this code under either of these licenses.
-//  ========================================================================
-//
-
-package org.eclipse.jetty.http;
-
-import java.io.IOException;
-
-/**
- * Abstract interface for a connection Parser for use by Jetty.
- */
-public interface Parser
-{
-    void returnBuffers();
-    void reset();
-
-    boolean isComplete();
-
-    /**
-     * @return True if progress made
-     * @throws IOException
-     */
-    boolean parseAvailable() throws IOException;
-
-    boolean isMoreInBuffer() throws IOException;
-
-    boolean isIdle();
-    
-    boolean isPersistent();
-    
-    void setPersistent(boolean persistent);
-
-}
--- a/src/org/eclipse/jetty/server/AbstractHttpConnection.java	Sun Oct 16 14:53:43 2016 -0600
+++ b/src/org/eclipse/jetty/server/AbstractHttpConnection.java	Sun Oct 16 18:01:39 2016 -0600
@@ -43,7 +43,6 @@
 import org.eclipse.jetty.http.HttpURI;
 import org.eclipse.jetty.http.HttpVersions;
 import org.eclipse.jetty.http.MimeTypes;
-import org.eclipse.jetty.http.Parser;
 import org.eclipse.jetty.io.AbstractConnection;
 import org.eclipse.jetty.io.Buffer;
 import org.eclipse.jetty.io.BufferCache.CachedBuffer;
--- a/src/org/eclipse/jetty/server/BlockingHttpConnection.java	Sun Oct 16 14:53:43 2016 -0600
+++ b/src/org/eclipse/jetty/server/BlockingHttpConnection.java	Sun Oct 16 18:01:39 2016 -0600
@@ -23,7 +23,6 @@
 import org.eclipse.jetty.http.Generator;
 import org.eclipse.jetty.http.HttpException;
 import org.eclipse.jetty.http.HttpStatus;
-import org.eclipse.jetty.http.Parser;
 import org.eclipse.jetty.io.EndPoint;
 import org.eclipse.jetty.io.nio.ChannelEndPoint;
 import org.eclipse.jetty.server.nio.BlockingChannelConnector;