protected class HttpConnection.HttpChannelOverHttp extends HttpChannel<ByteBuffer>
| Constructor and Description |
|---|
HttpConnection.HttpChannelOverHttp(Connector connector,
HttpConfiguration config,
EndPoint endPoint,
HttpTransport transport,
HttpInput<ByteBuffer> input) |
| Modifier and Type | Method and Description |
|---|---|
void |
badMessage(int status,
String reason) |
void |
failed()
If a write or similar to this channel fails this method should be called.
|
protected void |
handleException(Throwable x)
Sends an error 500, performing a special logic to detect whether the request is suspended,
to avoid concurrent writes from the application.
|
boolean |
headerComplete() |
content, continue100, earlyEOF, execute, getByteBufferPool, getConnector, getCurrentHttpChannel, getEndPoint, getHeaderCacheSize, getHttpConfiguration, getHttpVersion, getLocalAddress, getRemoteAddress, getRequest, getRequests, getResponse, getScheduler, getServer, getState, handle, isCommitted, isExpecting100Continue, isExpecting102Processing, messageComplete, parsedHeader, parsedHostHeader, reset, run, sendResponse, sendResponse, setCurrentHttpChannel, startRequest, toString, useDirectBuffers, write, writepublic HttpConnection.HttpChannelOverHttp(Connector connector, HttpConfiguration config, EndPoint endPoint, HttpTransport transport, HttpInput<ByteBuffer> input)
public void badMessage(int status,
String reason)
badMessage in interface HttpParser.HttpHandler<ByteBuffer>badMessage in class HttpChannel<ByteBuffer>public boolean headerComplete()
headerComplete in interface HttpParser.HttpHandler<ByteBuffer>headerComplete in class HttpChannel<ByteBuffer>protected void handleException(Throwable x)
HttpChannelSends an error 500, performing a special logic to detect whether the request is suspended, to avoid concurrent writes from the application.
It may happen that the application suspends, and then throws an exception, while an application
spawned thread writes the response content; in such case, we attempt to commit the error directly
bypassing the ErrorHandler mechanisms and the response OutputStream.
handleException in class HttpChannel<ByteBuffer>x - the Throwable that caused the problempublic void failed()
HttpChannelHttpChannel.failed() is a noop. But the different implementations of HttpChannel might want to take actions.failed in class HttpChannel<ByteBuffer>Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.