mirror of
https://github.com/jetty/jetty.project.git
synced 2025-02-28 19:09:10 +00:00
minor code cleanups
This commit is contained in:
parent
c44537fca8
commit
cd1035d1d6
@ -24,8 +24,6 @@ package org.eclipse.jetty.http;
|
||||
*/
|
||||
public class HttpField
|
||||
{
|
||||
|
||||
|
||||
private final HttpHeader _header;
|
||||
private final String _name;
|
||||
private final String _value;
|
||||
@ -41,7 +39,6 @@ public class HttpField
|
||||
{
|
||||
this(header,header.asString(),value);
|
||||
}
|
||||
|
||||
|
||||
public HttpField(HttpHeader header, HttpHeaderValue value)
|
||||
{
|
||||
|
@ -65,7 +65,6 @@ public class HttpFields implements Iterable<HttpField>
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get Collection of header names.
|
||||
*/
|
||||
@ -131,8 +130,6 @@ public class HttpFields implements Iterable<HttpField>
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public boolean contains(HttpHeader header, String value)
|
||||
{
|
||||
@ -156,7 +153,6 @@ public class HttpFields implements Iterable<HttpField>
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
private boolean contains(HttpField field,String value)
|
||||
{
|
||||
String v = field.getValue();
|
||||
@ -213,7 +209,6 @@ public class HttpFields implements Iterable<HttpField>
|
||||
return field==null?null:field.getValue();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get multi headers
|
||||
*
|
||||
@ -284,7 +279,6 @@ public class HttpFields implements Iterable<HttpField>
|
||||
|
||||
List<String> empty=Collections.emptyList();
|
||||
return Collections.enumeration(empty);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -61,7 +61,6 @@ public class HttpConnection extends AbstractConnection implements Runnable, Http
|
||||
private final HttpParser _parser;
|
||||
private volatile ByteBuffer _requestBuffer = null;
|
||||
private volatile ByteBuffer _chunk = null;
|
||||
private BlockingCallback _writeBlocker = new BlockingCallback();
|
||||
|
||||
|
||||
public static HttpConnection getCurrentConnection()
|
||||
@ -123,8 +122,6 @@ public class HttpConnection extends AbstractConnection implements Runnable, Http
|
||||
{
|
||||
return _parser;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public int getMessagesIn()
|
||||
|
Loading…
x
Reference in New Issue
Block a user