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(Throwable failure) |
Runnable |
onPushRequest(MetaData.Request request) |
Runnable |
onRequest(HeadersFrame frame) |
Runnable |
onRequestContent(DataFrame frame,
Callback callback) |
boolean |
onStreamTimeout(Throwable failure) |
void |
recycle() |
void |
setIdleTimeout(long timeoutMs)
Set the idle timeout.
|
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, onEarlyEOF, onRequest, onRequestComplete, resetBuffer, run, sendResponse, sendResponse, setRequestLog, useDirectBuffers, write
public HttpChannelOverHTTP2(Connector connector, HttpConfiguration configuration, EndPoint endPoint, HttpTransportOverHTTP2 transport)
protected IStream getStream()
public boolean isExpecting100Continue()
isExpecting100Continue
in class HttpChannel
public void setIdleTimeout(long timeoutMs)
HttpChannel
This 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 HttpChannel
timeoutMs
- the idle timeout in millisecondspublic long getIdleTimeout()
HttpChannel
This is implemented as a call to EndPoint.getIdleTimeout()
, but may be
overridden by channels that have timeouts different from their connections.
getIdleTimeout
in class HttpChannel
public Runnable onRequest(HeadersFrame frame)
public Runnable onPushRequest(MetaData.Request request)
public HttpTransportOverHTTP2 getHttpTransport()
getHttpTransport
in class HttpChannel
public void recycle()
recycle
in class HttpChannel
protected void commit(MetaData.Response info)
commit
in class HttpChannel
public boolean isRequestHandled()
public boolean onStreamTimeout(Throwable failure)
public void onFailure(Throwable failure)
protected void consumeInput()
public void continue100(int available) throws IOException
continue100
in class HttpChannel
available
- estimate of the number of bytes that are availableIOException
- if the InputStream cannot be createdpublic String toString()
toString
in class HttpChannel
Copyright © 1995-2016 Webtide. All Rights Reserved.