minor cleanup
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@872 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
f610858e6f
commit
eaa17eaee5
|
@ -334,6 +334,8 @@ public class ByteArrayBuffer extends AbstractBuffer
|
|||
*/
|
||||
public void wrap(byte[] b, int off, int len)
|
||||
{
|
||||
if (b==null)
|
||||
throw new IllegalArgumentException();
|
||||
if (isReadOnly()) throw new IllegalStateException(__READONLY);
|
||||
if (isImmutable()) throw new IllegalStateException(__IMMUTABLE);
|
||||
_bytes=b;
|
||||
|
|
|
@ -81,7 +81,7 @@ import org.eclipse.jetty.util.resource.Resource;
|
|||
*
|
||||
*
|
||||
*/
|
||||
public class ContextHandler extends ScopedHandler implements Attributes, Server.Graceful, CompleteHandler
|
||||
public class ContextHandler extends ScopedHandler implements Attributes, Server.Graceful
|
||||
{
|
||||
private static final ThreadLocal<Context> __context=new ThreadLocal<Context>();
|
||||
public static final String MANAGED_ATTRIBUTES = "org.eclipse.jetty.server.context.ManagedAttributes";
|
||||
|
@ -1431,12 +1431,6 @@ public class ContextHandler extends ScopedHandler implements Attributes, Server.
|
|||
|
||||
return host;
|
||||
}
|
||||
|
||||
public void complete(Request request)
|
||||
{
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------ */
|
||||
/** Context.
|
||||
|
|
|
@ -24,7 +24,7 @@ import org.eclipse.jetty.server.AsyncContinuation;
|
|||
import org.eclipse.jetty.server.Request;
|
||||
import org.eclipse.jetty.server.Response;
|
||||
|
||||
public class StatisticsHandler extends HandlerWrapper implements CompleteHandler
|
||||
public class StatisticsHandler extends HandlerWrapper
|
||||
{
|
||||
private transient final AtomicLong _statsStartedAt = new AtomicLong();
|
||||
private transient final AtomicInteger _requests = new AtomicInteger();
|
||||
|
@ -343,9 +343,4 @@ public class StatisticsHandler extends HandlerWrapper implements CompleteHandler
|
|||
{
|
||||
return _suspendTotalTime.get();
|
||||
}
|
||||
|
||||
public void complete(Request request)
|
||||
{
|
||||
updateResponse(request);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue