Define request attribute keys.

This commit is contained in:
takezoe
2013-09-23 02:03:10 +09:00
parent c57bc487a3
commit d34118bdfd
4 changed files with 42 additions and 14 deletions

View File

@@ -1,10 +1,13 @@
package util
/**
* Define key strings for request attributes, session attributes or flash attributes..
* Define key strings for request attributes, session attributes or flash attributes.
*/
object Keys {
/**
* Define session keys.
*/
object Session {
/**
@@ -44,4 +47,26 @@ object Keys {
}
/**
* Define request keys.
*/
object Request {
/**
* Request key for the Ajax request flag.
*/
val Ajax = "AJAX"
/**
* Request key for the username which is used during Git repository access.
*/
val UserName = "USER_NAME"
/**
* Generate request key for the request cache.
*/
def Cache(key: String) = s"cache.${key}"
}
}