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, setMaxConcurrentStreams
bind
createContext, exceptionOccurred, handleAccept, handleClose, handleConnect, onAdded, onFilterChainChanged, onRemoved, toString
public 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
BaseFilter
Filter
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 Filter
handleRead
in class BaseFilter
ctx
- FilterChainContext
NextAction
instruction for FilterChain
, how it
should continue the executionIOException
public NextAction handleEvent(FilterChainContext ctx, FilterChainEvent event) throws IOException
BaseFilter
Connection
.
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 Filter
handleEvent
in class Http2BaseFilter
ctx
- FilterChainContext
NextAction
instruction for FilterChain
, how it
should continue the executionIOException
protected void onPrefaceReceived(Http2Connection http2Connection)
onPrefaceReceived
in class Http2BaseFilter
protected void processCompleteHeader(Http2Connection http2Connection, FilterChainContext context, HeaderBlockHead firstHeaderFrame) throws IOException
Http2BaseFilter
Http2Connection
.processCompleteHeader
in class Http2BaseFilter
IOException
protected void processOutgoingHttpHeader(FilterChainContext ctx, Http2Connection http2Connection, HttpHeader httpHeader, HttpPacket entireHttpPacket) throws IOException
processOutgoingHttpHeader
in class Http2BaseFilter
ctx
- http2Connection
- httpHeader
- entireHttpPacket
- IOException
Copyright © 2024 Oracle Corporation. All rights reserved.