Module io.jooby

Annotation Interface SessionParam


@Retention(RUNTIME) @Target(PARAMETER) public @interface SessionParam
Allow access to session attributes from MVC route.

 public String method(@SessionParam String userId) {
   ...
 }
 
See Session.toMap().
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Session attribute's name.
  • Element Details

    • value

      String value
      Session attribute's name.
      Returns:
      Session attribute's name.
      Default:
      ""