Class DefaultHttp2Connection.ConnectionStream
java.lang.Object
io.netty.handler.codec.http2.DefaultHttp2Connection.DefaultStream
io.netty.handler.codec.http2.DefaultHttp2Connection.ConnectionStream
- All Implemented Interfaces:
Http2Stream
- Enclosing class:
DefaultHttp2Connection
private final class DefaultHttp2Connection.ConnectionStream
extends DefaultHttp2Connection.DefaultStream
Stream class representing the connection, itself.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Http2Stream
Http2Stream.State -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclose()Closes the stream.Closes the local side of this stream.Closes the remote side of this stream.(package private) DefaultHttp2Connection.DefaultEndpoint<? extends Http2FlowController> headersSent(boolean isInformational) Indicates that headers have been sent to the remote endpoint on this stream.booleanIndicates whether or not headers were sent to the remote endpoint.booleanIndicates whether or not a push promise was sent to the remote endpoint.booleanIndicates whether aRST_STREAMframe has been sent from the local endpoint for this stream.open(boolean halfClosed) Opens this stream, making it available viaHttp2Connection.forEachActiveStream(Http2StreamVisitor)and transition state to:Http2Stream.State.OPENifHttp2Stream.state()isHttp2Stream.State.IDLEandhalfClosedisfalse.Http2Stream.State.HALF_CLOSED_LOCALifHttp2Stream.state()isHttp2Stream.State.IDLEandhalfClosedistrueand the stream is local.Indicates that a push promise was sent to the remote endpoint.Sets the flag indicating that aRST_STREAMframe has been sent from the local endpoint for this stream.Methods inherited from class DefaultHttp2Connection.DefaultStream
activate, close, equals, getProperty, hashCode, headersReceived, id, isHeadersReceived, isLocal, isTrailersReceived, isTrailersSent, removeProperty, setProperty, state, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ConnectionStream
ConnectionStream()
-
-
Method Details
-
isResetSent
public boolean isResetSent()Description copied from interface:Http2StreamIndicates whether aRST_STREAMframe has been sent from the local endpoint for this stream.- Specified by:
isResetSentin interfaceHttp2Stream- Overrides:
isResetSentin classDefaultHttp2Connection.DefaultStream
-
createdBy
DefaultHttp2Connection.DefaultEndpoint<? extends Http2FlowController> createdBy()- Overrides:
createdByin classDefaultHttp2Connection.DefaultStream
-
resetSent
Description copied from interface:Http2StreamSets the flag indicating that aRST_STREAMframe has been sent from the local endpoint for this stream. This does not affect the stream state.- Specified by:
resetSentin interfaceHttp2Stream- Overrides:
resetSentin classDefaultHttp2Connection.DefaultStream
-
open
Description copied from interface:Http2StreamOpens this stream, making it available viaHttp2Connection.forEachActiveStream(Http2StreamVisitor)and transition state to:Http2Stream.State.OPENifHttp2Stream.state()isHttp2Stream.State.IDLEandhalfClosedisfalse.Http2Stream.State.HALF_CLOSED_LOCALifHttp2Stream.state()isHttp2Stream.State.IDLEandhalfClosedistrueand the stream is local. In this state,Http2Stream.isHeadersSent()istrueHttp2Stream.State.HALF_CLOSED_REMOTEifHttp2Stream.state()isHttp2Stream.State.IDLEandhalfClosedistrueand the stream is remote. In this state,Http2Stream.isHeadersReceived()istrueHttp2Stream.State.RESERVED_LOCALifHttp2Stream.state()isHttp2Stream.State.HALF_CLOSED_REMOTE.Http2Stream.State.RESERVED_REMOTEifHttp2Stream.state()isHttp2Stream.State.HALF_CLOSED_LOCAL.
- Specified by:
openin interfaceHttp2Stream- Overrides:
openin classDefaultHttp2Connection.DefaultStream
-
close
Description copied from interface:Http2StreamCloses the stream.- Specified by:
closein interfaceHttp2Stream- Overrides:
closein classDefaultHttp2Connection.DefaultStream
-
closeLocalSide
Description copied from interface:Http2StreamCloses the local side of this stream. If this makes the stream closed, the child is closed as well.- Specified by:
closeLocalSidein interfaceHttp2Stream- Overrides:
closeLocalSidein classDefaultHttp2Connection.DefaultStream
-
closeRemoteSide
Description copied from interface:Http2StreamCloses the remote side of this stream. If this makes the stream closed, the child is closed as well.- Specified by:
closeRemoteSidein interfaceHttp2Stream- Overrides:
closeRemoteSidein classDefaultHttp2Connection.DefaultStream
-
headersSent
Description copied from interface:Http2StreamIndicates that headers have been sent to the remote endpoint on this stream. The first call to this method would be for the initial headers (seeHttp2Stream.isHeadersSent()} and the second call would indicate the trailers (seeHttp2Stream.isTrailersReceived()).- Specified by:
headersSentin interfaceHttp2Stream- Overrides:
headersSentin classDefaultHttp2Connection.DefaultStream- Parameters:
isInformational-trueif the headers contain an informational status code (for responses only).
-
isHeadersSent
public boolean isHeadersSent()Description copied from interface:Http2StreamIndicates whether or not headers were sent to the remote endpoint.- Specified by:
isHeadersSentin interfaceHttp2Stream- Overrides:
isHeadersSentin classDefaultHttp2Connection.DefaultStream
-
pushPromiseSent
Description copied from interface:Http2StreamIndicates that a push promise was sent to the remote endpoint.- Specified by:
pushPromiseSentin interfaceHttp2Stream- Overrides:
pushPromiseSentin classDefaultHttp2Connection.DefaultStream
-
isPushPromiseSent
public boolean isPushPromiseSent()Description copied from interface:Http2StreamIndicates whether or not a push promise was sent to the remote endpoint.- Specified by:
isPushPromiseSentin interfaceHttp2Stream- Overrides:
isPushPromiseSentin classDefaultHttp2Connection.DefaultStream
-