Annotation Interface HandleSocketHandshake
@Documented
@Retention(RUNTIME)
@Target(METHOD)
@HandleWeb(value="",
method="WS_HANDSHAKE",
skipExpiredRequests=false)
public @interface HandleSocketHandshake
Handles a WebSocket handshake request, invoked when a client first attempts to connect using a specialised
GET request.- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanIftrue, disables this handler during discovery.Determines how the handler responds when referenced protected data is no longer available.booleanIftrue, the handler will not publish a response to theWebResponselog.String[]One or more path patterns this handler applies to (e.g.
-
Element Details
-
onMissingProtectedData
MissingProtectedDataPolicy onMissingProtectedDataDetermines how the handler responds when referenced protected data is no longer available.- Default:
DEFAULT
-
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
-