com.scooterframework.web.controller
Class Flash

java.lang.Object
  extended by com.scooterframework.web.controller.Flash

public class Flash
extends java.lang.Object

Flash class contains all flash related methods.


Constructor Summary
Flash()
           
 
Method Summary
static void error(Message message)
          Records a flash message of error type.
static void error(java.lang.String message)
          Records a flash message of error type.
static void error(java.lang.String message, java.lang.Object value)
          Records a flash message of error type.
static void error(java.lang.String message, java.lang.Object value0, java.lang.Object value1)
          Records a flash message of error type.
static void error(java.lang.String message, java.lang.Object value0, java.lang.Object value1, java.lang.Object value2)
          Records a flash message of error type.
static void flash(java.lang.String type, Message message)
          Records a flash message of a specific type.
static void flash(java.lang.String type, java.lang.String message)
          Records a flash message of a specific type.
static void flash(java.lang.String type, java.lang.String message, java.lang.Object value)
          Records a flash message of a specific type.
static void flash(java.lang.String type, java.lang.String message, java.lang.Object value0, java.lang.Object value1)
          Records a flash message of a specific type.
static void flash(java.lang.String type, java.lang.String message, java.lang.Object value0, java.lang.Object value1, java.lang.Object value2)
          Records a flash message of a specific type.
static void notice(Message message)
          Records a flash message of notice type.
static void notice(java.lang.String message)
          Records a flash message of notice type.
static void notice(java.lang.String message, java.lang.Object value)
          Records a flash message of notice type.
static void notice(java.lang.String message, java.lang.Object value0, java.lang.Object value1)
          Records a flash message of notice type.
static void notice(java.lang.String message, java.lang.Object value0, java.lang.Object value1, java.lang.Object value2)
          Records a flash message of notice type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Flash

public Flash()
Method Detail

flash

public static void flash(java.lang.String type,
                         java.lang.String message)
Records a flash message of a specific type. The message can be either a sentence or a message key in a messages.properties file.

Parameters:
type - flash message type
message - the message or message key

flash

public static void flash(java.lang.String type,
                         java.lang.String message,
                         java.lang.Object value)
Records a flash message of a specific type. The message can be either a sentence or a message key in a messages.properties file.

Parameters:
type - flash message type
message - the message or message key
value - a value that can be used in the message

flash

public static void flash(java.lang.String type,
                         java.lang.String message,
                         java.lang.Object value0,
                         java.lang.Object value1)
Records a flash message of a specific type. The message can be either a sentence or a message key in a messages.properties file.

Parameters:
type - flash message type
message - the message or message key
value0 - a value that can be used in the message
value1 - a value that can be used in the message

flash

public static void flash(java.lang.String type,
                         java.lang.String message,
                         java.lang.Object value0,
                         java.lang.Object value1,
                         java.lang.Object value2)
Records a flash message of a specific type. The message can be either a sentence or a message key in a messages.properties file.

Parameters:
type - flash message type
message - the message or message key
value0 - a value that can be used in the message
value1 - a value that can be used in the message
value2 - a value that can be used in the message

flash

public static void flash(java.lang.String type,
                         Message message)
Records a flash message of a specific type. The message is of type Message or its subclass.

Parameters:
type - flash message type
message - a Message object

error

public static void error(java.lang.String message)
Records a flash message of error type. The message can be either a sentence or a message key in a messages.properties file.

Parameters:
message - the message or message key

error

public static void error(java.lang.String message,
                         java.lang.Object value)
Records a flash message of error type. The message can be either a sentence or a message key in a messages.properties file.

Parameters:
message - the message or message key
value - a value that can be used in the message

error

public static void error(java.lang.String message,
                         java.lang.Object value0,
                         java.lang.Object value1)
Records a flash message of error type. The message can be either a sentence or a message key in a messages.properties file.

Parameters:
message - the message or message key
value0 - a value that can be used in the message
value1 - a value that can be used in the message

error

public static void error(java.lang.String message,
                         java.lang.Object value0,
                         java.lang.Object value1,
                         java.lang.Object value2)
Records a flash message of error type. The message can be either a sentence or a message key in a messages.properties file.

Parameters:
message - the message or message key
value0 - a value that can be used in the message
value1 - a value that can be used in the message
value2 - a value that can be used in the message

error

public static void error(Message message)
Records a flash message of error type. The message is of type Message or its subclass.

Parameters:
message - a Message object

notice

public static void notice(java.lang.String message)
Records a flash message of notice type. The message can be either a sentence or a message key in a messages.properties file.

Parameters:
message - the message or message key

notice

public static void notice(java.lang.String message,
                          java.lang.Object value)
Records a flash message of notice type. The message can be either a sentence or a message key in a messages.properties file.

Parameters:
message - the message or message key
value - a value that can be used in the message

notice

public static void notice(java.lang.String message,
                          java.lang.Object value0,
                          java.lang.Object value1)
Records a flash message of notice type. The message can be either a sentence or a message key in a messages.properties file.

Parameters:
message - the message or message key
value0 - a value that can be used in the message
value1 - a value that can be used in the message

notice

public static void notice(java.lang.String message,
                          java.lang.Object value0,
                          java.lang.Object value1,
                          java.lang.Object value2)
Records a flash message of notice type. The message can be either a sentence or a message key in a messages.properties file.

Parameters:
message - the message or message key
value0 - a value that can be used in the message
value1 - a value that can be used in the message
value2 - a value that can be used in the message

notice

public static void notice(Message message)
Records a flash message of notice type. The message is of type Message or its subclass.

Parameters:
message - a Message object