| Modifier and Type | Class and Description |
|---|---|
| protected class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isAcceptable(String protocol, String tlsProtocol, String tlsCipher)
Implements org.
|
| protected ServerSessionListener | newSessionListener(Connector connector, EndPoint endPoint)
Implements abstract org.
|
| LOG | back to summary |
|---|---|
| private static final Logger LOG Hides org. | |
| HTTP2ServerConnectionFactory | back to summary |
|---|---|
| public HTTP2ServerConnectionFactory(HttpConfiguration httpConfiguration) | |
| HTTP2ServerConnectionFactory | back to summary |
|---|---|
| public HTTP2ServerConnectionFactory(HttpConfiguration httpConfiguration, String... protocols) | |
| isAcceptable | back to summary |
|---|---|
| public boolean isAcceptable(String protocol, String tlsProtocol, String tlsCipher) Implements org.
| |
| newSessionListener | back to summary |
|---|---|
| protected ServerSessionListener newSessionListener(Connector connector, EndPoint endPoint) Implements abstract org.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private HTTP2ServerConnection | |
| public void | onClose(Session
the session session, GoAwayFrame the GOAWAY frame that caused the session to be closed frame, Callback the callback to notify of the GOAWAY processing callback)Overrides default org. Callback method invoked when a GOAWAY frame caused the session to be closed. |
| public void | onDataAvailable(Stream
the stream stream)Overrides default org. Callback method invoked if the application has expressed
|
| public void | onFailure(Session
the session session, Throwable the failure failure, Callback the callback to notify of failure processing callback)Overrides default org. Callback method invoked when a failure has been detected for this session. |
| public void | onFailure(Stream
the stream stream, int the error code error, String the error reason, or null reason, Throwable the failure failure, Callback the callback to complete when the failure has been handled callback)Overrides default org. Callback method invoked when the stream failed. |
| private void | |
| public void | onHeaders(Stream
the stream stream, HeadersFrame the HEADERS frame received frame)Overrides default org. Callback method invoked when a HEADERS frame representing the HTTP response has been received. |
| public boolean | onIdleTimeout(Session
the session session)Overrides default org. Callback method invoked when the idle timeout expired. |
| public void | onIdleTimeout(Stream
the stream stream, TimeoutException the timeout failure x, Promise<Boolean> the promise to complete promise)Overrides default org. Callback method invoked when the stream exceeds its idle timeout. |
| public Stream. | onNewStream(Stream
the newly created stream stream, HeadersFrame the HEADERS frame received frame)Overrides default org. Callback method invoked when a new stream is being created upon receiving a HEADERS frame representing an HTTP request. |
| public Map | onPreface(Session
the session session)Overrides default org. Callback method invoked:
|
| public Stream. | onPush(Stream
the pushed stream stream, PushPromiseFrame the PUSH_PROMISE frame received frame)Overrides default org. Callback method invoked when a PUSH_PROMISE frame has been received. |
| public void | onReset(Stream
the stream stream, ResetFrame the RST_STREAM frame received frame, Callback the callback to complete when the reset has been handled callback)Overrides default org. Callback method invoked when a RST_STREAM frame has been received for this stream. |
| endPoint | back to summary |
|---|---|
| private final EndPoint endPoint | |
| HTTPServerSessionListener | back to summary |
|---|---|
| public HTTPServerSessionListener(EndPoint endPoint) | |
| close | back to summary |
|---|---|
| private void close(Stream stream, String reason) | |
| getConnection | back to summary |
|---|---|
| private HTTP2ServerConnection getConnection() | |
| onClose | back to summary |
|---|---|
| public void onClose(Session session, GoAwayFrame frame, Callback callback) Overrides default org. Doc from org. Callback method invoked when a GOAWAY frame caused the session to be closed.
| |
| onDataAvailable | back to summary |
|---|---|
| public void onDataAvailable(Stream stream) Overrides default org. Doc from org. Callback method invoked if the application has expressed
Applications that wish to handle DATA frames should call
Server applications should typically demand from Just prior calling this method, the outstanding demand is
cancelled; applications that implement this method should read
content calling Only one thread at a time invokes this method, although it may not be the same thread across different invocations. It is always guaranteed that invoking Typical usage:
| |
| onFailure | back to summary |
|---|---|
| public void onFailure(Session session, Throwable failure, Callback callback) Overrides default org. Doc from org. Callback method invoked when a failure has been detected for this session. | |
| onFailure | back to summary |
|---|---|
| public void onFailure(Stream stream, int error, String reason, Throwable failure, Callback callback) Overrides default org. Doc from org. Callback method invoked when the stream failed. | |
| onFailure | back to summary |
|---|---|
| private void onFailure(Stream stream, Throwable failure, Callback callback) | |
| onHeaders | back to summary |
|---|---|
| public void onHeaders(Stream stream, HeadersFrame frame) Overrides default org. Doc from org. Callback method invoked when a HEADERS frame representing the HTTP response has been received.
| |
| onIdleTimeout | back to summary |
|---|---|
| public boolean onIdleTimeout(Session session) Overrides default org. Doc from org. Callback method invoked when the idle timeout expired. | |
| onIdleTimeout | back to summary |
|---|---|
| public void onIdleTimeout(Stream stream, TimeoutException x, Promise<Boolean> promise) Overrides default org. Doc from org. Callback method invoked when the stream exceeds its idle timeout.
| |
| onNewStream | back to summary |
|---|---|
| public Stream. Overrides default org. Doc from org. Callback method invoked when a new stream is being created upon receiving a HEADERS frame representing an HTTP request. Applications should implement this method to process HTTP requests,
typically providing an HTTP response via
Applications can detect whether request DATA frames will be arriving
by testing
| |
| onPreface | back to summary |
|---|---|
| public Map Overrides default org. Doc from org. Callback method invoked:
| |
| onPush | back to summary |
|---|---|
| public Stream. Overrides default org. Doc from org. Callback method invoked when a PUSH_PROMISE frame has been received. Applications that override this method are typically interested in
processing the pushed stream DATA frames, and must demand for pushed
DATA frames via
| |
| onReset | back to summary |
|---|---|
| public void onReset(Stream stream, ResetFrame frame, Callback callback) Overrides default org. Doc from org. Callback method invoked when a RST_STREAM frame has been received for this stream.
| |