Decoder#decodeHeader(ByteBuffer, boolean, HeaderFrameReader)
decoding operation.
Methods of the callback are never called by a decoder with any of the
arguments being null.
API Note
The callback provides methods for all possible field line representations.
Names and values are CharSequences rather than Strings in
order to allow users to decide whether they need to create objects. A
CharSequence might be used in-place, for example, to be appended to
an Appendable (e.g. StringBuilder) and then discarded.
That said, if a passed CharSequence needs to outlast the method
call, it needs to be copied.
| Modifier and Type | Method and Description |
|---|---|
| public default boolean | Returns: true - if error was observed; false - otherwiseReports if a connection or a stream error has been observed during the decoding process |
| public void | |
| public void | onConnectionError(Throwable
a throwable, Http3Error Throwable instancea HTTP3 error code http3Error)A connection-level error observed during the decoding process. |
| public void | onDecoded(CharSequence
header name name, CharSequence header value value)A method the more specific methods of the callback forward their calls to. |
| public default void | onDecoded(CharSequence
header name name, CharSequence header value value, boolean whether the value is sensitive sensitive)A more finer-grained version of |
| public default void | onIndexed(long
index of a name/value pair in static or dynamic table index, CharSequence header name name, CharSequence header value value)An Indexed Field Line decoded. |
| public default void | onLiteralWithLiteralName(CharSequence
header name name, boolean if the nameHuffman, CharSequence name was Huffman encodedheader value value, boolean if the valueHuffman, boolean hideIntermediary)value was Huffman encodedA Literal Field
Line with Literal Name decoded, where both a |
| public default void | onLiteralWithNameReference(long
index of an entry in the table index, CharSequence name, CharSequence header value value, boolean if the valueHuffman, boolean value was Huffman encodedif the header field should be written to intermediary nodes hideIntermediary)A Literal
Field Line with Name Reference decoded, where a |
| public default void | onStreamError(Throwable
a throwable, Http3Error Throwable instancea HTTP3 error code http3Error)A stream-level error observed during the decoding process. |
| public long |
| hasError | back to summary |
|---|---|
| public default boolean hasError() Reports if a connection or a stream error has been observed during the decoding process
| |
| onComplete | back to summary |
|---|---|
| public void onComplete() A header fields decoding is completed. | |
| onConnectionError | back to summary |
|---|---|
| public void onConnectionError(Throwable throwable, Http3Error http3Error) A connection-level error observed during the decoding process.
| |
| onDecoded | back to summary |
|---|---|
| public void onDecoded(CharSequence name, CharSequence value) A method the more specific methods of the callback forward their calls to.
| |
| onDecoded | back to summary |
|---|---|
| public default void onDecoded(CharSequence name, CharSequence value, boolean sensitive) A more finer-grained version of Value sensitivity must be considered, for example, when implementing
an intermediary. A Implementation Specification The default implementation invokes
| |
| onIndexed | back to summary |
|---|---|
| public default void onIndexed(long index, CharSequence name, CharSequence value) An Indexed Field Line decoded. Implementation Specification The default implementation invokes
| |
| onLiteralWithLiteralName | back to summary |
|---|---|
| public default void onLiteralWithLiteralName(CharSequence name, boolean nameHuffman, CharSequence value, boolean valueHuffman, boolean hideIntermediary) A Literal Field
Line with Literal Name decoded, where both a Implementation Specification The default implementation invokes
| |
| onLiteralWithNameReference | back to summary |
|---|---|
| public default void onLiteralWithNameReference(long index, CharSequence name, CharSequence value, boolean valueHuffman, boolean hideIntermediary) A Literal
Field Line with Name Reference decoded, where a Implementation Specification The default implementation invokes
| |
| onStreamError | back to summary |
|---|---|
| public default void onStreamError(Throwable throwable, Http3Error http3Error) A stream-level error observed during the decoding process.
| |
| streamId | back to summary |
|---|---|
| public long streamId() Returns request/response stream id or push stream id associated with a decoding callback. | |