comment cleanup

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@2006 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2010-06-16 02:35:23 +00:00
parent 6a9bbd673b
commit b96953f305
1 changed files with 26 additions and 83 deletions

View File

@ -68,15 +68,10 @@ public abstract class AbstractConnector extends HttpBuffers implements Connector
private boolean _useDNS;
private boolean _forwarded;
private String _hostHeader;
private String _forwardedHostHeader = "X-Forwarded-Host"; // default to
// mod_proxy_http
// header
private String _forwardedServerHeader = "X-Forwarded-Server"; // default to
// mod_proxy_http
// header
private String _forwardedForHeader = "X-Forwarded-For"; // default to
// mod_proxy_http
// header
private String _forwardedHostHeader = "X-Forwarded-Host";
private String _forwardedServerHeader = "X-Forwarded-Server";
private String _forwardedForHeader = "X-Forwarded-For";
private boolean _reuseAddress = true;
protected int _maxIdleTime = 200000;
@ -87,101 +82,70 @@ public abstract class AbstractConnector extends HttpBuffers implements Connector
private final AtomicLong _statsStartedAt = new AtomicLong(-1L);
private final CounterStatistic _connectionStats = new CounterStatistic(); // connections
// to
// server
private final SampleStatistic _requestStats = new SampleStatistic(); // requests
// per
// connection
private final SampleStatistic _connectionDurationStats = new SampleStatistic(); // duration
// of
// a
// connection
/** connections to server */
private final CounterStatistic _connectionStats = new CounterStatistic();
/** requests per connection */
private final SampleStatistic _requestStats = new SampleStatistic();
/** duration of a connection */
private final SampleStatistic _connectionDurationStats = new SampleStatistic();
/*
* --------------------------------------------------------------------------
* -----
*/
/* ------------------------------------------------------------ */
/**
*/
public AbstractConnector()
{
}
/*
* --------------------------------------------------------------------------
* -----
*/
/* ------------------------------------------------------------ */
public final Buffer newBuffer(int size)
{
// TODO remove once no overrides established
return null;
}
/*
* --------------------------------------------------------------------------
* -----
*/
/* ------------------------------------------------------------ */
@Override
public Buffer newRequestBuffer(int size)
{
return new ByteArrayBuffer(size);
}
/*
* --------------------------------------------------------------------------
* -----
*/
/* ------------------------------------------------------------ */
@Override
public Buffer newRequestHeader(int size)
{
return new ByteArrayBuffer(size);
}
/*
* --------------------------------------------------------------------------
* -----
*/
/* ------------------------------------------------------------ */
@Override
public Buffer newResponseBuffer(int size)
{
return new ByteArrayBuffer(size);
}
/*
* --------------------------------------------------------------------------
* -----
*/
/* ------------------------------------------------------------ */
@Override
public Buffer newResponseHeader(int size)
{
return new ByteArrayBuffer(size);
}
/*
* --------------------------------------------------------------------------
* -----
*/
/* ------------------------------------------------------------ */
@Override
protected boolean isRequestHeader(Buffer buffer)
{
return true;
}
/*
* --------------------------------------------------------------------------
* -----
*/
/* ------------------------------------------------------------ */
@Override
protected boolean isResponseHeader(Buffer buffer)
{
return true;
}
/*
* --------------------------------------------------------------------------
* -----
*/
/* ------------------------------------------------------------ */
/*
*/
public Server getServer()
@ -189,19 +153,13 @@ public abstract class AbstractConnector extends HttpBuffers implements Connector
return _server;
}
/*
* --------------------------------------------------------------------------
* -----
*/
/* ------------------------------------------------------------ */
public void setServer(Server server)
{
_server = server;
}
/*
* --------------------------------------------------------------------------
* -----
*/
/* ------------------------------------------------------------ */
/*
* @see org.eclipse.jetty.http.HttpListener#getHttpServer()
*/
@ -210,19 +168,13 @@ public abstract class AbstractConnector extends HttpBuffers implements Connector
return _threadPool;
}
/*
* --------------------------------------------------------------------------
* -----
*/
/* ------------------------------------------------------------ */
public void setThreadPool(ThreadPool pool)
{
_threadPool = pool;
}
/*
* --------------------------------------------------------------------------
* -----
*/
/* ------------------------------------------------------------ */
/**
*/
public void setHost(String host)
@ -230,10 +182,7 @@ public abstract class AbstractConnector extends HttpBuffers implements Connector
_host = host;
}
/*
* --------------------------------------------------------------------------
* -----
*/
/* ------------------------------------------------------------ */
/*
*/
public String getHost()
@ -241,10 +190,7 @@ public abstract class AbstractConnector extends HttpBuffers implements Connector
return _host;
}
/*
* --------------------------------------------------------------------------
* -----
*/
/* ------------------------------------------------------------ */
/*
* @see org.eclipse.jetty.server.server.HttpListener#setPort(int)
*/
@ -253,10 +199,7 @@ public abstract class AbstractConnector extends HttpBuffers implements Connector
_port = port;
}
/*
* --------------------------------------------------------------------------
* -----
*/
/* ------------------------------------------------------------ */
/*
* @see org.eclipse.jetty.server.server.HttpListener#getPort()
*/