public class Http2ServerFilter extends Http2BaseFilter
FIXED_LENGTH_ENCODING| Constructor and Description |
|---|
Http2ServerFilter() |
Http2ServerFilter(DraftVersion... supportedDraftVersions) |
Http2ServerFilter(ExecutorService threadPool,
DraftVersion... supportedDraftVersions) |
| Modifier and Type | Method and Description |
|---|---|
NextAction |
handleEvent(FilterChainContext ctx,
FilterChainEvent event)
Handle custom event associated with the
Connection. |
NextAction |
handleRead(FilterChainContext ctx)
Execute a unit of processing work to be performed, when channel will
become available for reading.
|
boolean |
isAllowPayloadForUndefinedHttpMethods()
The flag, which enables/disables payload support for HTTP methods,
for which HTTP spec doesn't clearly state whether they support payload.
|
protected void |
onPrefaceReceived(Http2Connection http2Connection) |
protected void |
processCompleteHeader(Http2Connection http2Connection,
FilterChainContext context,
HeaderBlockHead firstHeaderFrame)
The method is called once complete HTTP header block arrives on
Http2Connection. |
protected void |
processOutgoingHttpHeader(FilterChainContext ctx,
Http2Connection http2Connection,
HttpHeader httpHeader,
HttpPacket entireHttpPacket) |
void |
setAllowPayloadForUndefinedHttpMethods(boolean allowPayloadForUndefinedHttpMethods)
The flag, which enables/disables payload support for HTTP methods,
for which HTTP spec doesn't clearly state whether they support payload.
|
checkRequestHeadersOnUpgrade, checkResponseHeadersOnUpgrade, createHttp2Connection, getHttp2UpgradeSettings, getHttp2UpgradingVersion, getInitialWindowSize, getLocalMaxFramePayloadSize, getMaxConcurrentStreams, handleWrite, obtainHttp2Connection, onHttpContentEncoded, onHttpContentError, onHttpContentParsed, onHttpHeaderError, onHttpHeaderParsed, onHttpHeadersEncoded, onHttpHeadersParsed, onHttpPacketParsed, onInitialLineEncoded, onInitialLineParsed, prepareOutgoingRequest, processFrames, sendSettings, setInitialWindowSize, setLocalMaxFramePayloadSize, setMaxConcurrentStreamsbindcreateContext, exceptionOccurred, handleAccept, handleClose, handleConnect, onAdded, onFilterChainChanged, onRemoved, toStringpublic Http2ServerFilter()
public Http2ServerFilter(DraftVersion... supportedDraftVersions)
public Http2ServerFilter(ExecutorService threadPool, DraftVersion... supportedDraftVersions)
public boolean isAllowPayloadForUndefinedHttpMethods()
public void setAllowPayloadForUndefinedHttpMethods(boolean allowPayloadForUndefinedHttpMethods)
allowPayloadForUndefinedHttpMethods - true if "undefined" methods support payload, or false otherwisepublic NextAction handleRead(FilterChainContext ctx) throws IOException
BaseFilterFilter may either complete the required processing and
return false, or delegate remaining processing to the next
Filter in a FilterChain containing this Filter
by returning true.handleRead in interface FilterhandleRead in class BaseFilterctx - FilterChainContextNextAction instruction for FilterChain, how it
should continue the executionIOExceptionpublic NextAction handleEvent(FilterChainContext ctx, FilterChainEvent event) throws IOException
BaseFilterConnection.
This Filter may either complete the required processing and
return StopAction, or delegate remaining processing to the next
Filter in a FilterChain containing this Filter
by returning InvokeAction.handleEvent in interface FilterhandleEvent in class Http2BaseFilterctx - FilterChainContextNextAction instruction for FilterChain, how it
should continue the executionIOExceptionprotected void onPrefaceReceived(Http2Connection http2Connection)
onPrefaceReceived in class Http2BaseFilterprotected void processCompleteHeader(Http2Connection http2Connection, FilterChainContext context, HeaderBlockHead firstHeaderFrame) throws IOException
Http2BaseFilterHttp2Connection.processCompleteHeader in class Http2BaseFilterIOExceptionprotected void processOutgoingHttpHeader(FilterChainContext ctx, Http2Connection http2Connection, HttpHeader httpHeader, HttpPacket entireHttpPacket) throws IOException
processOutgoingHttpHeader in class Http2BaseFilterctx - http2Connection - httpHeader - entireHttpPacket - IOExceptionCopyright © 2021 Oracle Corporation. All rights reserved.