Package net.officefloor.server.http
Interface HttpRequestHeaders
- All Superinterfaces:
Iterable<HttpHeader>
- All Known Implementing Classes:
MaterialisingHttpRequestHeaders,SerialisableHttpRequestHeaders
HttpHeader instances for the HttpRequest.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptiongetHeader(CharSequence name) Obtains the firstHttpHeaderby the name.getHeaders(CharSequence name) Obtains all theHttpHeaderinstances by the name.headerAt(int index) Obtains theHttpHeaderat the index.intlength()Obtains the number ofHttpHeaderinstances.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getHeader
Obtains the firstHttpHeaderby the name.- Parameters:
name- Name of theHttpHeader.- Returns:
- First
HttpHeaderornullif noHttpHeaderby the name.
-
getHeaders
Obtains all theHttpHeaderinstances by the name.- Parameters:
name- Name of theHttpHeaderinstances.- Returns:
- All
HttpHeaderinstances by the name.
-
headerAt
Obtains theHttpHeaderat the index.- Parameters:
index- Index of theHttpHeader.- Returns:
HttpHeaderat the index.
-
length
int length()Obtains the number ofHttpHeaderinstances.- Returns:
- Number of
HttpHeaderinstances.
-