Package net.officefloor.server.http
Interface HttpRequestHeaders
-
- All Superinterfaces:
java.lang.Iterable<HttpHeader>
- All Known Implementing Classes:
MaterialisingHttpRequestHeaders
,SerialisableHttpRequestHeaders
public interface HttpRequestHeaders extends java.lang.Iterable<HttpHeader>
HttpHeader
instances for theHttpRequest
.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpHeader
getHeader(java.lang.CharSequence name)
Obtains the firstHttpHeader
by the name.java.lang.Iterable<HttpHeader>
getHeaders(java.lang.CharSequence name)
Obtains all theHttpHeader
instances by the name.HttpHeader
headerAt(int index)
Obtains theHttpHeader
at the index.int
length()
Obtains the number ofHttpHeader
instances.
-
-
-
Method Detail
-
getHeader
HttpHeader getHeader(java.lang.CharSequence name)
Obtains the firstHttpHeader
by the name.- Parameters:
name
- Name of theHttpHeader
.- Returns:
- First
HttpHeader
ornull
if noHttpHeader
by the name.
-
getHeaders
java.lang.Iterable<HttpHeader> getHeaders(java.lang.CharSequence name)
Obtains all theHttpHeader
instances by the name.- Parameters:
name
- Name of theHttpHeader
instances.- Returns:
- All
HttpHeader
instances by the name.
-
headerAt
HttpHeader headerAt(int index)
Obtains theHttpHeader
at the index.- Parameters:
index
- Index of theHttpHeader
.- Returns:
HttpHeader
at the index.
-
length
int length()
Obtains the number ofHttpHeader
instances.- Returns:
- Number of
HttpHeader
instances.
-
-