Package net.officefloor.server.http.impl
Class MaterialisingHttpRequestCookies
java.lang.Object
net.officefloor.server.http.impl.MaterialisingHttpRequestCookies
- All Implemented Interfaces:
Iterable<HttpRequestCookie>,HttpRequestCookies
Materialising
HttpRequestCookies.- Author:
- Daniel Sagenschneider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncookieAt(int index) Obtains theHttpRequestCookieat the index.Obtains the firstHttpRequestCookieby the name.iterator()intlength()Obtains the number ofHttpRequestCookieinstances.Methods 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
-
MaterialisingHttpRequestCookies
Instantiate.- Parameters:
headers-HttpRequestHeaders.
-
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceIterable<HttpRequestCookie>
-
getCookie
Description copied from interface:HttpRequestCookiesObtains the firstHttpRequestCookieby the name.- Specified by:
getCookiein interfaceHttpRequestCookies- Parameters:
name- Name of theHttpRequestCookie.- Returns:
- First
HttpRequestCookieornullif noHttpRequestCookieby the name.
-
cookieAt
Description copied from interface:HttpRequestCookiesObtains theHttpRequestCookieat the index.- Specified by:
cookieAtin interfaceHttpRequestCookies- Parameters:
index- Index of theHttpRequestCookie.- Returns:
HttpRequestCookieat the index.
-
length
public int length()Description copied from interface:HttpRequestCookiesObtains the number ofHttpRequestCookieinstances.- Specified by:
lengthin interfaceHttpRequestCookies- Returns:
- Number of
HttpRequestCookieinstances.
-