public class Flash extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Flash.Kind
usual types
|
Modifier and Type | Field and Description |
---|---|
protected static Map<Long,Flash> |
dropboxes |
protected Flash.Kind |
kind
kind of flash, ACK NACK or ADVISORY
|
protected String |
message
the message to show, if any
|
protected static long |
nextdrop |
Constructor and Description |
---|
Flash(String message)
Create an ACK flash of default styling with the given message.
|
Flash(String message,
Flash.Kind kind)
Create a Flash of the given kind, message with default styling.
|
Modifier and Type | Method and Description |
---|---|
static void |
addFlash(org.restlet.data.Response response,
String message) |
static void |
addFlash(org.restlet.data.Response response,
String message,
Flash.Kind kind) |
static List<Flash> |
getFlashes(org.restlet.data.Request request) |
Flash.Kind |
getKind() |
String |
getMessage() |
boolean |
isExpired()
Indicate whether the Flash should persist.
|
static void |
renderFlashesHTML(Writer writer,
org.restlet.data.Request request) |
protected static long nextdrop
protected Flash.Kind kind
protected String message
public Flash(String message)
message
- public Flash(String message, Flash.Kind kind)
kind
- message
- public static void addFlash(org.restlet.data.Response response, String message)
public static void addFlash(org.restlet.data.Response response, String message, Flash.Kind kind)
public static void renderFlashesHTML(Writer writer, org.restlet.data.Request request)
public boolean isExpired()
public String getMessage()
public Flash.Kind getKind()
Copyright © 2003-2014 Internet Archive. All Rights Reserved.