Package org.takes.facets.cookies
Interface RqCookies
-
- All Known Implementing Classes:
RqCookies.Base
public interface RqCookies extends Request
HTTP cookies parsing.All implementations of this interface must be immutable and thread-safe.
- Since:
- 0.14
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
RqCookies.Base
Request decorator, for HTTP cookies parsing.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iterable<String>
cookie(CharSequence name)
Get single cookie.Iterable<String>
names()
Get all cookie names.
-
-
-
Method Detail
-
cookie
Iterable<String> cookie(CharSequence name) throws IOException
Get single cookie.- Parameters:
name
- Cookie name- Returns:
- List of values (can be empty)
- Throws:
IOException
- If fails
-
names
Iterable<String> names() throws IOException
Get all cookie names.- Returns:
- All names
- Throws:
IOException
- If fails
-
-