public class HttpChannelOverHTTP2 extends HttpChannel
| Constructor and Description |
|---|
HttpChannelOverHTTP2(Connector connector,
HttpConfiguration configuration,
EndPoint endPoint,
HttpTransportOverHTTP2 transport) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
commit(MetaData.Response info) |
protected void |
consumeInput() |
void |
continue100(int available)
If the associated response has the Expect header set to 100 Continue,
then accessing the input stream indicates that the handler/servlet
is ready for the request body and thus a 100 Continue response is sent.
|
HttpTransportOverHTTP2 |
getHttpTransport() |
long |
getIdleTimeout()
Get the idle timeout.
|
protected IStream |
getStream() |
boolean |
isExpecting100Continue() |
boolean |
isRequestHandled() |
void |
onFailure(java.lang.Throwable failure) |
java.lang.Runnable |
onPushRequest(MetaData.Request request) |
java.lang.Runnable |
onRequest(HeadersFrame frame) |
java.lang.Runnable |
onRequestContent(DataFrame frame,
Callback callback) |
java.lang.Runnable |
onRequestTrailers(HeadersFrame frame) |
boolean |
onStreamTimeout(java.lang.Throwable failure) |
void |
recycle() |
void |
setIdleTimeout(long timeoutMs)
Set the idle timeout.
|
java.lang.String |
toString() |
abort, addRequestLog, asyncReadFillInterested, execute, getByteBufferPool, getBytesWritten, getCommittedMetaData, getConnector, getEndPoint, getHttpConfiguration, getLocalAddress, getNextInterceptor, getRemoteAddress, getRequest, getRequestLog, getRequests, getResponse, getScheduler, getServer, getState, handle, handleException, isCommitted, isExpecting102Processing, isOptimizedForDirectBuffers, newHttpInput, newHttpOutput, onBadMessage, onCompleted, onContent, onContentComplete, onEarlyEOF, onRequest, onRequestComplete, onTrailers, resetBuffer, run, sendError, sendResponse, sendResponse, setRequestLog, useDirectBuffers, writepublic HttpChannelOverHTTP2(Connector connector, HttpConfiguration configuration, EndPoint endPoint, HttpTransportOverHTTP2 transport)
protected IStream getStream()
public boolean isExpecting100Continue()
isExpecting100Continue in class HttpChannelpublic void setIdleTimeout(long timeoutMs)
HttpChannelThis is implemented as a call to EndPoint.setIdleTimeout(long), but may be
overridden by channels that have timeouts different from their connections.
setIdleTimeout in class HttpChanneltimeoutMs - the idle timeout in millisecondspublic long getIdleTimeout()
HttpChannelThis is implemented as a call to EndPoint.getIdleTimeout(), but may be
overridden by channels that have timeouts different from their connections.
getIdleTimeout in class HttpChannelpublic java.lang.Runnable onRequest(HeadersFrame frame)
public java.lang.Runnable onPushRequest(MetaData.Request request)
public HttpTransportOverHTTP2 getHttpTransport()
getHttpTransport in class HttpChannelpublic void recycle()
recycle in class HttpChannelprotected void commit(MetaData.Response info)
commit in class HttpChannelpublic java.lang.Runnable onRequestTrailers(HeadersFrame frame)
public boolean isRequestHandled()
public boolean onStreamTimeout(java.lang.Throwable failure)
public void onFailure(java.lang.Throwable failure)
protected void consumeInput()
public void continue100(int available)
throws java.io.IOException
continue100 in class HttpChannelavailable - estimate of the number of bytes that are availablejava.io.IOException - if the InputStream cannot be createdpublic java.lang.String toString()
toString in class HttpChannelCopyright © 1995–2017 Webtide. All rights reserved.