public class HeaderSink extends Object
Constructor and Description |
---|
HeaderSink() |
Modifier and Type | Method and Description |
---|---|
void |
emitHeader(String name,
String value)
Pass a single header to the recipient.
|
void |
validateHeaders()
Are the headers pass to the recipient so far valid?
|
public void emitHeader(String name, String value)
name
- Header namevalue
- Header valuepublic void validateHeaders() throws StreamException
StreamException
- If the headers received to date are not validCopyright © 2000-2017 Apache Software Foundation. All Rights Reserved.