Annotation Interface HxRequest


@Target({TYPE,METHOD}) @Retention(RUNTIME) public @interface HxRequest
Annotation for mapping htmx requests onto specific handler method.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Whether the mapping applies also for requests that have been boosted.
    boolean
    Whether the mapping applies also for requests that have been made for history restoration.
    Restricts the mapping to the id of a specific target element.
    Restricts the mapping to the id of a specific triggered element.
    Restricts the mapping to the name of a specific triggered element.
    Restricts the mapping to the id, if any, or to the name of a specific triggered element.
  • Element Details

    • boosted

      boolean boosted
      Whether the mapping applies also for requests that have been boosted. Defaults to true.
      Since:
      3.6.0
      See Also:
      Default:
      true
    • historyRestoreRequest

      boolean historyRestoreRequest
      Whether the mapping applies also for requests that have been made for history restoration.
      Since:
      4.1.0
      See Also:
      Default:
      false
    • target

      String target
      Restricts the mapping to the id of a specific target element.
      See Also:
      Default:
      ""
    • triggerId

      String triggerId
      Restricts the mapping to the id of a specific triggered element.
      See Also:
      Default:
      ""
    • triggerName

      String triggerName
      Restricts the mapping to the name of a specific triggered element.
      See Also:
      Default:
      ""
    • value

      String value
      Restricts the mapping to the id, if any, or to the name of a specific triggered element.

      If you want to be explicit use triggerId() or triggerName().

      See Also:
      Default:
      ""