public class Stream
extends java.lang.Object
Constructor and Description |
---|
Stream(java.lang.Integer identifier,
Http2UpgradeHandler handler) |
Stream(java.lang.Integer identifier,
Http2UpgradeHandler handler,
Request coyoteRequest) |
Modifier and Type | Method and Description |
---|---|
protected void |
decrementWindowSize(int decrement) |
protected void |
doNotifyAll()
Deprecated.
|
void |
emitHeader(java.lang.String name,
java.lang.String value)
Pass a single header to the recipient.
|
protected java.lang.String |
getConnectionId() |
java.lang.Integer |
getIdentifier() |
protected int |
getWeight() |
protected long |
getWindowSize() |
protected void |
incrementWindowSize(int windowSizeIncrement)
Increment window size.
|
void |
setHeaderException(StreamException streamException)
Inform the recipient of the headers that a stream error needs to be
triggered using the given message when
validateHeaders() is
called. |
protected void |
setWindowSize(long windowSize) |
void |
validateHeaders()
Are the headers pass to the recipient so far valid?
|
public Stream(java.lang.Integer identifier, Http2UpgradeHandler handler)
public Stream(java.lang.Integer identifier, Http2UpgradeHandler handler, Request coyoteRequest)
protected void incrementWindowSize(int windowSizeIncrement) throws Http2Exception
windowSizeIncrement
- The amount of the incrementationHttp2Exception
- If the window size is now higher than
the maximum allowed@Deprecated protected void doNotifyAll()
public final void emitHeader(java.lang.String name, java.lang.String value) throws HpackException
name
- Header namevalue
- Header valueHpackException
- If a header is received that is not compliant
with the HTTP/2 specificationpublic void setHeaderException(StreamException streamException)
validateHeaders()
is
called. This is used when the Parser becomes aware of an error that
is not visible to the recipient.streamException
- The exception to use when resetting the streampublic void validateHeaders() throws StreamException
StreamException
- If the headers received to date are not validprotected final java.lang.String getConnectionId()
protected int getWeight()
public java.lang.Integer getIdentifier()
protected void setWindowSize(long windowSize)
protected long getWindowSize()
protected void decrementWindowSize(int decrement)
Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.