Top Description Inners
org.eclipse.jetty.http2

public Interface HTTP2Channel

Imports
java.util.concurrent.TimeoutException, java.util.function.BiConsumer, org.eclipse.jetty.http2.frames.HeadersFrame, org.eclipse.jetty.util.Callback, .Promise

A HTTP/2 specific handler of events for normal and tunnelled exchanges.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
HTTP2Channel.Client

A client specific handler for events that happen after a HEADERS response frame is received.

public static interface
HTTP2Channel.Server

A server specific handler for events that happen after a HEADERS request frame is received.

org.eclipse.jetty.http2 back to summary

public Interface HTTP2Channel.Client


A client specific handler for events that happen after a HEADERS response frame is received.

DATA frames may be handled as response content or as opaque tunnelled data.

Method Summary

Modifier and TypeMethod and Description
public void
public void
onFailure(Throwable failure, Callback callback)

public void

Method Detail

onDataAvailableback to summary
public void onDataAvailable()
onFailureback to summary
public void onFailure(Throwable failure, Callback callback)
onTimeoutback to summary
public void onTimeout(TimeoutException failure, Promise<Boolean> promise)
org.eclipse.jetty.http2 back to summary

public Interface HTTP2Channel.Server


A server specific handler for events that happen after a HEADERS request frame is received.

DATA frames may be handled as request content or as opaque tunnelled data.

Method Summary

Modifier and TypeMethod and Description
public boolean
public Runnable
public Runnable
onFailure(Throwable failure, Callback callback)

public void
public Runnable

Method Detail

isIdleback to summary
public boolean isIdle()
onDataAvailableback to summary
public Runnable onDataAvailable()
onFailureback to summary
public Runnable onFailure(Throwable failure, Callback callback)
onTimeoutback to summary
public void onTimeout(TimeoutException timeout, BiConsumer<Runnable, Boolean> consumer)
onTrailerback to summary
public Runnable onTrailer(HeadersFrame frame)