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>
HttpHeaderinstances for theHttpRequest.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HttpHeadergetHeader(java.lang.CharSequence name)Obtains the firstHttpHeaderby the name.java.lang.Iterable<HttpHeader>getHeaders(java.lang.CharSequence name)Obtains all theHttpHeaderinstances by the name.HttpHeaderheaderAt(int index)Obtains theHttpHeaderat the index.intlength()Obtains the number ofHttpHeaderinstances.
-
-
-
Method Detail
-
getHeader
HttpHeader getHeader(java.lang.CharSequence name)
Obtains the firstHttpHeaderby the name.- Parameters:
name- Name of theHttpHeader.- Returns:
- First
HttpHeaderornullif noHttpHeaderby the name.
-
getHeaders
java.lang.Iterable<HttpHeader> getHeaders(java.lang.CharSequence name)
Obtains all theHttpHeaderinstances by the name.- Parameters:
name- Name of theHttpHeaderinstances.- Returns:
- All
HttpHeaderinstances by the name.
-
headerAt
HttpHeader headerAt(int index)
Obtains theHttpHeaderat the index.- Parameters:
index- Index of theHttpHeader.- Returns:
HttpHeaderat the index.
-
length
int length()
Obtains the number ofHttpHeaderinstances.- Returns:
- Number of
HttpHeaderinstances.
-
-