Package net.officefloor.server.http.impl
Class MaterialisingHttpRequestCookies
- java.lang.Object
-
- net.officefloor.server.http.impl.MaterialisingHttpRequestCookies
-
- All Implemented Interfaces:
java.lang.Iterable<HttpRequestCookie>
,HttpRequestCookies
public class MaterialisingHttpRequestCookies extends java.lang.Object implements HttpRequestCookies
MaterialisingHttpRequestCookies
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description MaterialisingHttpRequestCookies(HttpRequestHeaders headers)
Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpRequestCookie
cookieAt(int index)
Obtains theHttpRequestCookie
at the index.HttpRequestCookie
getCookie(java.lang.String name)
Obtains the firstHttpRequestCookie
by the name.java.util.Iterator<HttpRequestCookie>
iterator()
int
length()
Obtains the number ofHttpRequestCookie
instances.
-
-
-
Constructor Detail
-
MaterialisingHttpRequestCookies
public MaterialisingHttpRequestCookies(HttpRequestHeaders headers)
Instantiate.- Parameters:
headers
-HttpRequestHeaders
.
-
-
Method Detail
-
iterator
public java.util.Iterator<HttpRequestCookie> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<HttpRequestCookie>
-
getCookie
public HttpRequestCookie getCookie(java.lang.String name)
Description copied from interface:HttpRequestCookies
Obtains the firstHttpRequestCookie
by the name.- Specified by:
getCookie
in interfaceHttpRequestCookies
- Parameters:
name
- Name of theHttpRequestCookie
.- Returns:
- First
HttpRequestCookie
ornull
if noHttpRequestCookie
by the name.
-
cookieAt
public HttpRequestCookie cookieAt(int index)
Description copied from interface:HttpRequestCookies
Obtains theHttpRequestCookie
at the index.- Specified by:
cookieAt
in interfaceHttpRequestCookies
- Parameters:
index
- Index of theHttpRequestCookie
.- Returns:
HttpRequestCookie
at the index.
-
length
public int length()
Description copied from interface:HttpRequestCookies
Obtains the number ofHttpRequestCookie
instances.- Specified by:
length
in interfaceHttpRequestCookies
- Returns:
- Number of
HttpRequestCookie
instances.
-
-