Annotation Type Param


  • @Retention(RUNTIME)
    @Target(PARAMETER)
    public @interface Param
    Identifies a route method parameter that should be injected with a value returned from HttpServerRequest.getParam(String).

    The parameter type must be String, java.util.Optional<String> or java.util.List<String>, otherwise the build fails.

    See Also:
    HttpServerRequest.getParam(String)
    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static String ELEMENT_NAME
      Constant value for value() indicating that the annotated element's name should be used as-is.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String value
      The name of the parameter.
    • Field Detail

      • ELEMENT_NAME

        static final String ELEMENT_NAME
        Constant value for value() indicating that the annotated element's name should be used as-is.
    • Element Detail

      • value

        String value
        The name of the parameter. By default, the element's name is used as-is.
        Returns:
        the name of the parameter
        Default:
        "<<element name>>"