Annotation Interface Handle


@Retention(RUNTIME) @Target(METHOD) public @interface Handle
Annotates a method in a class annotated with Controller. A method with this annotation handles an HTTP request for a single endpoint.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • path

      String path
      Returns:
      The URL path.
    • method

      Returns:
      The HTTP method for this endpoint.
      Default:
      GET