/src/fan/Flash.fan

https://bitbucket.org/afrankvt/draft/ · Unknown · 27 lines · 23 code · 4 blank · 0 comment · 0 complexity · 692451787082509a32c60541df046b0c MD5 · raw file

  1. //
  2. // Copyright (c) 2011, Andy Frank
  3. // Licensed under the MIT License
  4. //
  5. // History:
  6. // 1 Jul 2011 Andy Frank Creation
  7. //
  8. using web
  9. **
  10. ** Flash manages short-term messaging between requests.
  11. **
  12. class Flash
  13. {
  14. ** Values from previous request.
  15. Str:Str req { private set }
  16. ** Map used to build flash for the next request.
  17. Str:Str res := Str:Str[:] { private set }
  18. ** Internal ctor.
  19. internal new make(Str:Str req)
  20. {
  21. this.req = req.ro
  22. }
  23. }