private final class DefaultHttp2Connection.ConnectionStream extends DefaultHttp2Connection.DefaultStream
Http2Stream.State| Constructor and Description |
|---|
ConnectionStream() |
| Modifier and Type | Method and Description |
|---|---|
Http2Stream |
close()
Closes the stream.
|
Http2Stream |
closeLocalSide()
Closes the local side of this stream.
|
Http2Stream |
closeRemoteSide()
Closes the remote side of this stream.
|
(package private) DefaultHttp2Connection.DefaultEndpoint<? extends Http2FlowController> |
createdBy() |
Http2Stream |
headersSent()
Indicates that headers has been sent to the remote on this stream.
|
boolean |
isHeadersSent()
Indicates whether or not headers was sent to the remote endpoint.
|
boolean |
isPushPromiseSent()
Indicates whether or not a push promise was sent to the remote endpoint.
|
boolean |
isResetSent()
Indicates whether a
RST_STREAM frame has been sent from the local endpoint for this stream. |
Http2Stream |
open(boolean halfClosed)
Opens this stream, making it available via
Http2Connection.forEachActiveStream(Http2StreamVisitor) and
transition state to:
Http2Stream.State.OPEN if Http2Stream.state() is Http2Stream.State.IDLE and halfClosed is false.
Http2Stream.State.HALF_CLOSED_LOCAL if Http2Stream.state() is Http2Stream.State.IDLE and halfClosed
is true and the stream is local.
Http2Stream.State.HALF_CLOSED_REMOTE if Http2Stream.state() is Http2Stream.State.IDLE and halfClosed
is true and the stream is remote.
Http2Stream.State.RESERVED_LOCAL if Http2Stream.state() is Http2Stream.State.HALF_CLOSED_REMOTE.
Http2Stream.State.RESERVED_REMOTE if Http2Stream.state() is Http2Stream.State.HALF_CLOSED_LOCAL.
|
Http2Stream |
pushPromiseSent()
Indicates that a push promise was sent to the remote endpoint.
|
Http2Stream |
resetSent()
Sets the flag indicating that a
RST_STREAM frame has been sent from the local endpoint
for this stream. |
activate, close, getProperty, id, isLocal, removeProperty, setProperty, statepublic boolean isResetSent()
Http2StreamRST_STREAM frame has been sent from the local endpoint for this stream.isResetSent in interface Http2StreamisResetSent in class DefaultHttp2Connection.DefaultStreamDefaultHttp2Connection.DefaultEndpoint<? extends Http2FlowController> createdBy()
createdBy in class DefaultHttp2Connection.DefaultStreampublic Http2Stream resetSent()
Http2StreamRST_STREAM frame has been sent from the local endpoint
for this stream. This does not affect the stream state.resetSent in interface Http2StreamresetSent in class DefaultHttp2Connection.DefaultStreampublic Http2Stream open(boolean halfClosed)
Http2StreamHttp2Connection.forEachActiveStream(Http2StreamVisitor) and
transition state to:
Http2Stream.State.OPEN if Http2Stream.state() is Http2Stream.State.IDLE and halfClosed is false.Http2Stream.State.HALF_CLOSED_LOCAL if Http2Stream.state() is Http2Stream.State.IDLE and halfClosed
is true and the stream is local.Http2Stream.State.HALF_CLOSED_REMOTE if Http2Stream.state() is Http2Stream.State.IDLE and halfClosed
is true and the stream is remote.Http2Stream.State.RESERVED_LOCAL if Http2Stream.state() is Http2Stream.State.HALF_CLOSED_REMOTE.Http2Stream.State.RESERVED_REMOTE if Http2Stream.state() is Http2Stream.State.HALF_CLOSED_LOCAL.open in interface Http2Streamopen in class DefaultHttp2Connection.DefaultStreampublic Http2Stream close()
Http2Streamclose in interface Http2Streamclose in class DefaultHttp2Connection.DefaultStreampublic Http2Stream closeLocalSide()
Http2StreamcloseLocalSide in interface Http2StreamcloseLocalSide in class DefaultHttp2Connection.DefaultStreampublic Http2Stream closeRemoteSide()
Http2StreamcloseRemoteSide in interface Http2StreamcloseRemoteSide in class DefaultHttp2Connection.DefaultStreampublic Http2Stream headersSent()
Http2StreamheadersSent in interface Http2StreamheadersSent in class DefaultHttp2Connection.DefaultStreampublic boolean isHeadersSent()
Http2StreamisHeadersSent in interface Http2StreamisHeadersSent in class DefaultHttp2Connection.DefaultStreampublic Http2Stream pushPromiseSent()
Http2StreampushPromiseSent in interface Http2StreampushPromiseSent in class DefaultHttp2Connection.DefaultStreampublic boolean isPushPromiseSent()
Http2StreamisPushPromiseSent in interface Http2StreamisPushPromiseSent in class DefaultHttp2Connection.DefaultStream