comparison src/org/eclipse/jetty/server/AbstractHttpConnection.java @ 980:bd26bd9320e2

simplify HttpParser
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 16 Oct 2016 21:01:26 -0600
parents c8cd3e96db5f
children f46de416e219
comparison
equal deleted inserted replaced
979:c8cd3e96db5f 980:bd26bd9320e2
679 { 679 {
680 _earlyEOF = true; 680 _earlyEOF = true;
681 } 681 }
682 682
683 683
684 private class RequestHandler extends HttpParser.EventHandler 684 private class RequestHandler implements HttpParser.EventHandler
685 { 685 {
686 @Override 686 @Override
687 public void startRequest(Buffer method, Buffer uri, Buffer version) throws IOException 687 public void startRequest(Buffer method, Buffer uri, Buffer version) throws IOException
688 { 688 {
689 AbstractHttpConnection.this.startRequest(method, uri, version); 689 AbstractHttpConnection.this.startRequest(method, uri, version);
709 709
710 @Override 710 @Override
711 public void messageComplete(long contentLength) throws IOException 711 public void messageComplete(long contentLength) throws IOException
712 { 712 {
713 AbstractHttpConnection.this.messageComplete(contentLength); 713 AbstractHttpConnection.this.messageComplete(contentLength);
714 }
715
716 @Override
717 public void startResponse(Buffer version, int status, Buffer reason)
718 {
719 if (LOG.isDebugEnabled())
720 LOG.debug("Bad request!: "+version+" "+status+" "+reason);
721 } 714 }
722 715
723 @Override 716 @Override
724 public void earlyEOF() 717 public void earlyEOF()
725 { 718 {