Annotation Type ComponentValue


  • @Target(PARAMETER)
    @Retention(RUNTIME)
    public @interface ComponentValue
    Annotation that indicates method parameter should be bound to some component value of the HTTP server.
    Since:
    1.3
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean required
      Returns whether the component value is required.
      java.lang.Class<? extends HttpServerComponent> value
      Returns the type of the component.
    • Element Detail

      • value

        java.lang.Class<? extends HttpServerComponent> value
        Returns the type of the component.

        Default value is HttpServerComponent.class.

        Returns:
        the type of the component.
        Default:
        com.github.fmjsjx.libnetty.http.server.component.HttpServerComponent.class
      • required

        boolean required
        Returns whether the component value is required.

        The default is true.

        Returns:
        true if the component value is required, false otherwise
        Default:
        true