| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | emitHeader(String
Header name name, String Header value value)Implements org. Pass a single header to the recipient. |
| public void | setHeaderException(StreamException
The exception to use when resetting the stream streamException)Implements org. Inform the recipient of the headers that a stream error needs to be triggered using the given message when
|
| public void | validateHeaders()
Implements org. Are the headers pass to the recipient so far valid? |
| HeaderSink | back to summary |
|---|---|
| pack-priv HeaderSink() | |
| emitHeader | back to summary |
|---|---|
| public void emitHeader(String name, String value) Implements org. Doc from org. Pass a single header to the recipient. | |
| setHeaderException | back to summary |
|---|---|
| public void setHeaderException(StreamException streamException) Implements org. Doc from org. Inform the recipient of the headers that a stream error needs to be triggered using the given message when
| |
| validateHeaders | back to summary |
|---|---|
| public void validateHeaders() throws StreamException Implements org. Doc from org. Are the headers pass to the recipient so far valid? The decoder needs to process all the headers to maintain state even if there is a problem. In addition, it is easy for the the intended recipient to track if the complete set of headers is valid since to do that state needs to be maintained between the parsing of the initial headers and the parsing of any trailer headers. The recipient is the best place to maintain that state.
| |