Class RawHTTP2ServerConnectionFactory.RawServerSessionListener
- java.lang.Object
-
- org.eclipse.jetty.http2.server.RawHTTP2ServerConnectionFactory.RawServerSessionListener
-
- All Implemented Interfaces:
ServerSessionListener,Session.Listener
- Enclosing class:
- RawHTTP2ServerConnectionFactory
private class RawHTTP2ServerConnectionFactory.RawServerSessionListener extends java.lang.Object implements ServerSessionListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.http2.api.server.ServerSessionListener
ServerSessionListener.Adapter
-
-
Field Summary
Fields Modifier and Type Field Description private ServerSessionListenerdelegate
-
Constructor Summary
Constructors Modifier Constructor Description privateRawServerSessionListener(ServerSessionListener delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonAccept(Session session)Callback method invoked when a connection has been accepted by the server.voidonClose(Session session, GoAwayFrame frame)voidonFailure(Session session, java.lang.Throwable failure)voidonGoAway(Session session, GoAwayFrame frame)Callback method invoked when a GOAWAY frame has been received.booleanonIdleTimeout(Session session)Callback method invoked when the idle timeout expired.Stream.ListeneronNewStream(Stream stream, HeadersFrame frame)Callback method invoked when a new stream is being created upon receiving a HEADERS frame representing an HTTP request.voidonPing(Session session, PingFrame frame)Callback method invoked when a PING frame has been received.java.util.Map<java.lang.Integer,java.lang.Integer>onPreface(Session session)Callback method invoked:voidonReset(Session session, ResetFrame frame)Callback method invoked when a RST_STREAM frame has been received for an unknown stream.voidonSettings(Session session, SettingsFrame frame)Callback method invoked when a SETTINGS frame has been received.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.http2.api.Session.Listener
onClose, onFailure
-
-
-
-
Field Detail
-
delegate
private final ServerSessionListener delegate
-
-
Constructor Detail
-
RawServerSessionListener
private RawServerSessionListener(ServerSessionListener delegate)
-
-
Method Detail
-
onAccept
public void onAccept(Session session)
Description copied from interface:ServerSessionListenerCallback method invoked when a connection has been accepted by the server.
- Specified by:
onAcceptin interfaceServerSessionListener- Parameters:
session- the session
-
onPreface
public java.util.Map<java.lang.Integer,java.lang.Integer> onPreface(Session session)
Description copied from interface:Session.ListenerCallback method invoked:
- for clients, just before the preface is sent, to gather the SETTINGS configuration options the client wants to send to the server;
- for servers, just after having received the preface, to gather the SETTINGS configuration options the server wants to send to the client.
- Specified by:
onPrefacein interfaceSession.Listener- Parameters:
session- the session- Returns:
- a (possibly empty or null) map containing SETTINGS configuration options to send.
-
onNewStream
public Stream.Listener onNewStream(Stream stream, HeadersFrame frame)
Description copied from interface:Session.ListenerCallback 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
Stream.headers(HeadersFrame, Callback).Applications can detect whether request DATA frames will be arriving by testing
HeadersFrame.isEndStream(). If the application is interested in processing the DATA frames, it must return aStream.Listenerimplementation that overridesStream.Listener.onData(Stream, DataFrame, Callback).- Specified by:
onNewStreamin interfaceSession.Listener- Parameters:
stream- the newly created streamframe- the HEADERS frame received- Returns:
- a
Stream.Listenerthat will be notified of stream events
-
onSettings
public void onSettings(Session session, SettingsFrame frame)
Description copied from interface:Session.ListenerCallback method invoked when a SETTINGS frame has been received.
- Specified by:
onSettingsin interfaceSession.Listener- Parameters:
session- the sessionframe- the SETTINGS frame received
-
onPing
public void onPing(Session session, PingFrame frame)
Description copied from interface:Session.ListenerCallback method invoked when a PING frame has been received.
- Specified by:
onPingin interfaceSession.Listener- Parameters:
session- the sessionframe- the PING frame received
-
onReset
public void onReset(Session session, ResetFrame frame)
Description copied from interface:Session.ListenerCallback method invoked when a RST_STREAM frame has been received for an unknown stream.
- Specified by:
onResetin interfaceSession.Listener- Parameters:
session- the sessionframe- the RST_STREAM frame received- See Also:
Stream.Listener.onReset(Stream, ResetFrame)
-
onGoAway
public void onGoAway(Session session, GoAwayFrame frame)
Description copied from interface:Session.ListenerCallback method invoked when a GOAWAY frame has been received.
- Specified by:
onGoAwayin interfaceSession.Listener- Parameters:
session- the sessionframe- the GOAWAY frame received
-
onClose
public void onClose(Session session, GoAwayFrame frame)
- Specified by:
onClosein interfaceSession.Listener
-
onIdleTimeout
public boolean onIdleTimeout(Session session)
Description copied from interface:Session.ListenerCallback method invoked when the idle timeout expired.
- Specified by:
onIdleTimeoutin interfaceSession.Listener- Parameters:
session- the session- Returns:
- whether the session should be closed
-
onFailure
public void onFailure(Session session, java.lang.Throwable failure)
- Specified by:
onFailurein interfaceSession.Listener
-
-