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
-
Element Details
-
value
String[] valueOne or more path patterns this handler applies to (e.g./users,/accounts/{id},/accounts/*/users). If empty, the path is based on thePathannotation.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 disabledIftrue, disables this handler during discovery.- Default:
false
-
passive
boolean passiveIftrue, the handler will not publish a response to theWebResponselog.- Default:
false
-