Purpose of this class is to silently swallow any headers. It is used once the connection close process has started if headers for new streams are received.
| 23 | * headers for new streams are received. |
| 24 | */ |
| 25 | class HeaderSink implements HeaderEmitter { |
| 26 | |
| 27 | @Override |
| 28 | public void emitHeader(String name, String value) { |
| 29 | // NO-OP |
| 30 | } |
| 31 | |
| 32 | @Override |
| 33 | public void validateHeaders() throws StreamException { |
| 34 | // NO-OP |
| 35 | } |
| 36 | |
| 37 | @Override |
| 38 | public void setHeaderException(StreamException streamException) { |
| 39 | // NO-OP |
| 40 | // The connection is already closing so no need to process additional |
| 41 | // errors |
| 42 | } |
| 43 | } |
nothing calls this directly
no outgoing calls
no test coverage detected