-
-
Notifications
You must be signed in to change notification settings - Fork 199
Expand file tree
/
Copy pathFlashMap.java
More file actions
40 lines (34 loc) · 759 Bytes
/
FlashMap.java
File metadata and controls
40 lines (34 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* Jooby https://jooby.io
* Apache License Version 2.0 https://jooby.io/LICENSE.txt
* Copyright 2014 Edgar Espina
*/
package io.jooby;
import java.util.Map;
import io.jooby.internal.FlashMapImpl;
/**
* Flash map.
*
* @author edgar
* @since 2.0.0
*/
public interface FlashMap extends Map<String, String> {
/** Flash map attribute. */
String NAME = "flash";
/**
* Creates a new flash-scope using the given cookie.
*
* @param ctx Web context.
* @param template Cookie template.
* @return A new flash map.
*/
static FlashMap create(Context ctx, Cookie template) {
return new FlashMapImpl(ctx, template);
}
/**
* Keep flash cookie for next request.
*
* @return This flash map.
*/
FlashMap keep();
}