| Modifier and Type | Field and Description |
|---|---|
| private final HeaderValue | |
| private final AlpnClientNegotiatorImpl | |
| private final HeaderValue | |
| private boolean | |
| private static final Logger | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private static HttpResponsePacket | copyInterimResponse(final HttpRequestPacket request, final HttpResponsePacket source)
Creates a standalone copy of an interim (1xx) response so it can be delivered upstream while the shared response packet is reused for the final response. |
| protected Http2Session | Returns: Http2Sessionthe TCP connection connection)Creates client-side |
| protected AlpnClientNegotiator | |
| public NextAction | handleConnect(final FilterChainContext ctx)
Overrides org. Implements org. Execute a unit of processing work to be performed, when channel gets connected. |
| public NextAction | handleEvent(final FilterChainContext ctx, final FilterChainEvent event)
Overrides org. Implements org. Handle custom event associated with the |
| public NextAction | handleRead(final FilterChainContext ctx)
Overrides org. Implements org. Execute a unit of processing work to be performed, when channel will become available for reading. |
| public NextAction | handleWrite(final FilterChainContext ctx)
Overrides org. Implements org. Execute a unit of processing work to be performed, when some data should be written on channel. |
| private static boolean | |
| public boolean | |
| public boolean | isSendPushRequestUpstream()
Returns: true if the push request has to be sent upstream, so a user has an opportunity to process it, or false otherwise |
| protected SettingsFrame. | |
| protected void | processCompleteHeader(final Http2Session http2Session, final FilterChainContext context, final HeaderBlockHead firstHeaderFrame)
Implements abstract org. The method is called once complete HTTP header block arrives on |
| private void | processInPushPromise(final Http2Session http2Session, final FilterChainContext context, final PushPromiseFrame pushPromiseFrame)
|
| private void | processInResponse(final Http2Session http2Session, final FilterChainContext context, final HeadersFrame headersFrame)
|
| protected void | processOutgoingHttpHeader(final FilterChainContext
the current ctx, final Http2Session FilterChainContextthe http2Session, final HttpHeader Http2Session that's being written to.the httpHeader, final HttpPacket HttpHeader to write.the entireHttpPacket)HttpPacket to write.Implements abstract org. Process the provided outbound header/packet. |
| private void | processOutgoingRequestForNewStream(final FilterChainContext ctx, final Http2Session http2Session, final HttpRequestPacket request, final HttpPacket entireHttpPacket)
|
| public void | setNeverForceUpgrade(boolean
true to disable upgrade attempts, otherwise falseConfigure this filter to completely disable attempts to upgrade to HTTP/2. |
| public void | setSendPushRequestUpstream(boolean
true if the push request has to be sent upstream, so a user has an opportunity to
process it, or false otherwise sendPushRequestUpstream)
|
| private boolean | Returns: true if the connection was successfully upgraded, otherwise falsethe current ctx, final Http2State FilterChainContextthe HTTP2 connection state http2State, final HttpRequestPacket the HTTP request httpRequest, final HttpResponsePacket the HTTP response httpResponse)The method is called once a client receives an HTTP response to its initial propose to establish HTTP/2.0 connection. |
| private boolean |
| connectionUpgradeHeaderValue | back to summary |
|---|---|
| private final HeaderValue connectionUpgradeHeaderValue | |
| defaultClientAlpnNegotiator | back to summary |
|---|---|
| private final AlpnClientNegotiatorImpl defaultClientAlpnNegotiator | |
| defaultHttp2Upgrade | back to summary |
|---|---|
| private final HeaderValue defaultHttp2Upgrade | |
| isNeverForceUpgrade | back to summary |
|---|---|
| private boolean isNeverForceUpgrade | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| sendPushRequestUpstream | back to summary |
|---|---|
| private boolean sendPushRequestUpstream | |
| Http2ClientFilter | back to summary |
|---|---|
| public Http2ClientFilter(final Http2Configuration configuration) | |
| checkIfLastHttp11Chunk | back to summary |
|---|---|
| private void checkIfLastHttp11Chunk(final FilterChainContext ctx, final Http2State http2State, final Object msg) | |
| copyInterimResponse | back to summary |
|---|---|
| private static HttpResponsePacket copyInterimResponse(final HttpRequestPacket request, final HttpResponsePacket source) Creates a standalone copy of an interim (1xx) response so it can be delivered upstream while the shared response packet is reused for the final response. The copy is linked to the request (so it can resolve its processing state) without replacing the request's response binding. | |
| createClientHttp2Session | back to summary |
|---|---|
| protected Http2Session createClientHttp2Session(final Connection<L> connection) Creates client-side Note Should be called with disabled OP_READ (or during OP_READ processing), because peer frames must not be processed at the time this method is running.
| |
| getClientAlpnNegotiator | back to summary |
|---|---|
| protected AlpnClientNegotiator getClientAlpnNegotiator() | |
| handleConnect | back to summary |
|---|---|
| public NextAction handleConnect(final FilterChainContext ctx) throws IOException Overrides org. Implements org. Doc from org. Execute a unit of processing work to be performed, when channel gets connected. This
| |
| handleEvent | back to summary |
|---|---|
| public NextAction handleEvent(final FilterChainContext ctx, final FilterChainEvent event) throws IOException Overrides org. Implements org. Doc from org. Handle custom event associated with the
| |
| handleRead | back to summary |
|---|---|
| public NextAction handleRead(final FilterChainContext ctx) throws IOException Overrides org. Implements org. Doc from org. Execute a unit of processing work to be performed, when channel will become available for reading. This
| |
| handleWrite | back to summary |
|---|---|
| public NextAction handleWrite(final FilterChainContext ctx) throws IOException Overrides org. Implements org. Doc from org. Execute a unit of processing work to be performed, when some data should be written on channel. This
| |
| isInterimResponse | back to summary |
|---|---|
| private static boolean isInterimResponse(final HttpResponsePacket response) | |
| isNeverForceUpgrade | back to summary |
|---|---|
public boolean isNeverForceUpgrade()
| |
| isSendPushRequestUpstream | back to summary |
|---|---|
public boolean isSendPushRequestUpstream()
| |
| prepareSettings | back to summary |
|---|---|
| protected SettingsFrame. | |
| processCompleteHeader | back to summary |
|---|---|
| protected void processCompleteHeader(final Http2Session http2Session, final FilterChainContext context, final HeaderBlockHead firstHeaderFrame) throws IOException Implements abstract org. Doc from org. The method is called once complete HTTP header block arrives on
| |
| processInPushPromise | back to summary |
|---|---|
private void processInPushPromise(final Http2Session http2Session, final FilterChainContext context, final PushPromiseFrame pushPromiseFrame) throws Http2StreamException, IOException
| |
| processInResponse | back to summary |
|---|---|
private void processInResponse(final Http2Session http2Session, final FilterChainContext context, final HeadersFrame headersFrame) throws Http2SessionException, IOException
| |
| processOutgoingHttpHeader | back to summary |
|---|---|
| protected void processOutgoingHttpHeader(final FilterChainContext ctx, final Http2Session http2Session, final HttpHeader httpHeader, final HttpPacket entireHttpPacket) throws IOException Implements abstract org. Process the provided outbound header/packet.
| |
| processOutgoingRequestForNewStream | back to summary |
|---|---|
private void processOutgoingRequestForNewStream(final FilterChainContext ctx, final Http2Session http2Session, final HttpRequestPacket request, final HttpPacket entireHttpPacket) throws IOException
| |
| setNeverForceUpgrade | back to summary |
|---|---|
| public void setNeverForceUpgrade(boolean neverForceUpgrade) Configure this filter to completely disable attempts to upgrade to HTTP/2.
| |
| setSendPushRequestUpstream | back to summary |
|---|---|
public void setSendPushRequestUpstream(boolean sendPushRequestUpstream)
| |
| tryHttpUpgrade | back to summary |
|---|---|
| private boolean tryHttpUpgrade(final FilterChainContext ctx, final Http2State http2State, final HttpRequestPacket httpRequest, final HttpResponsePacket httpResponse) throws Http2StreamException, IOException The method is called once a client receives an HTTP response to its initial propose to establish HTTP/2.0 connection.
| |
| tryInsertHttpUpgradeHeaders | back to summary |
|---|---|
| private boolean tryInsertHttpUpgradeHeaders(final Connection<L> connection, final Object msg) | |