Class NonMaterialisedHeadersImpl
- java.lang.Object
-
- net.officefloor.server.http.parse.NonMaterialisedHeadersImpl
-
- All Implemented Interfaces:
java.lang.Iterable<NonMaterialisedHttpHeader>
,NonMaterialisedHttpHeaders
public class NonMaterialisedHeadersImpl extends java.lang.Object implements NonMaterialisedHttpHeaders
NonMaterialisedHttpHeaders
implementation.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description NonMaterialisedHeadersImpl(int initialCapacity)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHttpHeader(StreamBufferByteSequence name, StreamBufferByteSequence value)
Adds aNonMaterialisedHttpHeader
.java.util.Iterator<NonMaterialisedHttpHeader>
iterator()
int
length()
Obtains the number ofNonMaterialisedHttpHeader
instances.
-
-
-
Constructor Detail
-
NonMaterialisedHeadersImpl
public NonMaterialisedHeadersImpl(int initialCapacity)
Instantiate.- Parameters:
initialCapacity
- Initial capacity ofNonMaterialisedHttpHeader
instances.
-
-
Method Detail
-
addHttpHeader
public void addHttpHeader(StreamBufferByteSequence name, StreamBufferByteSequence value)
Adds aNonMaterialisedHttpHeader
.- Parameters:
name
-HttpHeader
name.value
-HttpHeader
value.
-
iterator
public java.util.Iterator<NonMaterialisedHttpHeader> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<NonMaterialisedHttpHeader>
-
length
public int length()
Description copied from interface:NonMaterialisedHttpHeaders
Obtains the number ofNonMaterialisedHttpHeader
instances.- Specified by:
length
in interfaceNonMaterialisedHttpHeaders
- Returns:
- Number of
NonMaterialisedHttpHeader
instances.
-
-