java.lang.Object
robaho.net.httpserver.http2.hpack.HeaderFields
- All Implemented Interfaces:
Iterable<HTTP2HeaderField>
container for emitted HTTP2HeaderField from field block decoding. Many of the rules of valid
headers require multi-field inspection, so aggregating and validating at the end is an easier
design
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAll(List<HTTP2HeaderField> httpFields) voidaddHeaderField(HTTP2HeaderField field) add a HTTP2HeaderField to the collection performing any per field validationvoidclear()iterator()intsize()voidvalidate()perform the multi-field validation of the collection of header fieldsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
HeaderFields
public HeaderFields()
-
-
Method Details
-
addHeaderField
add a HTTP2HeaderField to the collection performing any per field validation- Throws:
HTTP2Exception
-
addAll
- Throws:
HTTP2Exception
-
iterator
- Specified by:
iteratorin interfaceIterable<HTTP2HeaderField>
-
clear
public void clear() -
validate
perform the multi-field validation of the collection of header fields- Throws:
HTTP2Exception
-
size
public int size()
-