Annotation Type TokenParam


  • @Target(PARAMETER)
    @Retention(RUNTIME)
    @Documented
    public @interface TokenParam
    Annotation that you can use to bind a String parameter in a handler method to the molgenis token in the request. Sample use:

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean required
      Whether the parameter is required.
    • Element Detail

      • required

        boolean required
        Whether the parameter is required.

        Defaults to false, leading to a null value if the parameter is not present in the request. Switch this to true if you prefer an exception being thrown if the parameter is missing in the request.

        Default:
        false