comparison src/org/eclipse/jetty/server/AbstractHttpConnection.java @ 1021:e350c11242be

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 31 Oct 2016 22:49:25 -0600
parents 6be43ef1eb96
children 3718afd99988
comparison
equal deleted inserted replaced
1020:6be43ef1eb96 1021:e350c11242be
39 import org.eclipse.jetty.http.HttpURI; 39 import org.eclipse.jetty.http.HttpURI;
40 import org.eclipse.jetty.http.HttpVersions; 40 import org.eclipse.jetty.http.HttpVersions;
41 import org.eclipse.jetty.http.MimeTypes; 41 import org.eclipse.jetty.http.MimeTypes;
42 import org.eclipse.jetty.io.AbstractConnection; 42 import org.eclipse.jetty.io.AbstractConnection;
43 import org.eclipse.jetty.io.Buffer; 43 import org.eclipse.jetty.io.Buffer;
44 import org.eclipse.jetty.io.BufferCache.CachedBuffer;
45 import org.eclipse.jetty.io.Buffers; 44 import org.eclipse.jetty.io.Buffers;
46 import org.eclipse.jetty.io.ByteArrayBuffer; 45 import org.eclipse.jetty.io.ByteArrayBuffer;
47 import org.eclipse.jetty.io.EndPoint; 46 import org.eclipse.jetty.io.EndPoint;
48 import org.eclipse.jetty.io.EofException; 47 import org.eclipse.jetty.io.EofException;
49 import org.eclipse.jetty.io.RuntimeIOException; 48 import org.eclipse.jetty.io.RuntimeIOException;
501 throw (HttpException)e; 500 throw (HttpException)e;
502 throw new HttpException(HttpStatus.BAD_REQUEST_400,null,e); 501 throw new HttpException(HttpStatus.BAD_REQUEST_400,null,e);
503 } 502 }
504 } 503 }
505 504
506 private void parsedHeader(Buffer name, String value) throws IOException 505 private void parsedHeader(String name, String value) throws IOException
507 { 506 {
508 int ho = HttpHeaders.CACHE.getOrdinal(name); 507 int ho = HttpHeaders.CACHE.getOrdinal(name);
509 switch (ho) 508 switch (ho)
510 { 509 {
511 case HttpHeaders.HOST_ORDINAL: 510 case HttpHeaders.HOST_ORDINAL:
662 { 661 {
663 AbstractHttpConnection.this.startRequest(method, uri, version); 662 AbstractHttpConnection.this.startRequest(method, uri, version);
664 } 663 }
665 664
666 @Override 665 @Override
667 public void parsedHeader(Buffer name, String value) throws IOException 666 public void parsedHeader(String name, String value) throws IOException
668 { 667 {
669 AbstractHttpConnection.this.parsedHeader(name, value); 668 AbstractHttpConnection.this.parsedHeader(name, value);
670 } 669 }
671 670
672 @Override 671 @Override