Annotation Interface HandleSocketMessage


@Documented @Retention(RUNTIME) @Target({METHOD,CONSTRUCTOR}) @HandleWeb(value="", method="WS_MESSAGE", skipExpiredRequests=false) public @interface HandleSocketMessage
Handles an incoming WebSocket message.
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    If true, disables this handler during discovery.
    Determines how the handler responds when referenced protected data is no longer available.
    boolean
    If true, the handler will not publish a response to the WebResponse log.
    One or more path patterns this handler applies to (e.g.
  • Element Details

    • onMissingProtectedData

      MissingProtectedDataPolicy onMissingProtectedData
      Determines how the handler responds when referenced protected data is no longer available.
      Default:
      DEFAULT
    • value

      String[] value
      One or more path patterns this handler applies to (e.g. /users, /accounts/{id}, /accounts/*/users). If empty, the path is based on the Path annotation.

      Patterns support literal path parts, {name} parameters, {name:regex} constrained parameters, and * wildcards. A non-final * matches within a single path segment, while a final * matches the rest of the path. Optional path fragments can be declared with square brackets, for example /users[/{id}]. Trailing slashes on non-root paths are ignored.

      Default:
      {}
    • disabled

      boolean disabled
      If true, disables this handler during discovery.
      Default:
      false
    • passive

      boolean passive
      If true, the handler will not publish a response to the WebResponse log.
      Default:
      false