java.io.Closeable
, java.lang.AutoCloseable
, HttpOutput.Interceptor
HTTP2ServerConnection.ServerHttpChannelOverHTTP2
public class HttpChannelOverHTTP2 extends HttpChannel implements java.io.Closeable
Constructor | Description |
---|---|
HttpChannelOverHTTP2(Connector connector,
HttpConfiguration configuration,
EndPoint endPoint,
HttpTransportOverHTTP2 transport) |
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
|
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() |
|
protected IStream |
getStream() |
|
boolean |
isExpecting100Continue() |
|
boolean |
isRequestExecuting() |
|
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) |
|
java.lang.String |
toString() |
abort, addRequestLog, execute, getByteBufferPool, getBytesWritten, getCommittedMetaData, getConnector, getEndPoint, getHttpConfiguration, getLocalAddress, getNextInterceptor, getRemoteAddress, getRequest, getRequestLog, getRequests, getResponse, getScheduler, getServer, getState, handle, handleException, isCommitted, isExpecting102Processing, isOptimizedForDirectBuffers, newHttpInput, newHttpOutput, onAsyncWaitForContent, onBadMessage, onBlockWaitForContent, onBlockWaitForContentFailure, onCompleted, onContent, onContentComplete, onEarlyEOF, onRequest, onRequestComplete, onTrailers, resetBuffer, run, sendError, 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)
setIdleTimeout
in class HttpChannel
public long getIdleTimeout()
getIdleTimeout
in class HttpChannel
public java.lang.Runnable onRequest(HeadersFrame frame)
public java.lang.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 java.lang.Runnable onRequestTrailers(HeadersFrame frame)
public boolean isRequestExecuting()
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 HttpChannel
java.io.IOException
- if the InputStream cannot be createdpublic void close()
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
public java.lang.String toString()
toString
in class HttpChannel
Copyright © 1995–2017 Webtide. All rights reserved.