Module io.jooby

Annotation Interface BindParam


@Retention(RUNTIME) @Target({PARAMETER,ANNOTATION_TYPE}) public @interface BindParam
Custom mapping of HTTP request to parameter.
Since:
3.2.5
Author:
edgar
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Name of the function doing the mapping.
    Class containing the mapping function.
  • Element Details

    • value

      Class<?> value
      Class containing the mapping function. If no class is specified it looks at:

      - Parameter type for fn() method. - Or fallback to controller class.

      Returns:
      Source of mapping function.
      Default:
      void.class
    • fn

      String fn
      Name of the function doing the mapping. Function must accept a single argument of type Context and returns type must be the parameter type. Name is optional and only required in case of conflict.
      Returns:
      Name of the function doing the mapping.
      Default:
      ""